# Host machine
git clone https://github.com/szcompressor/cuSZ.git
# Host machine
docker run -it --gpus all --env NVIDIA_DISABLE_REQUIRE=1 -v $PWD/cuSZ:/cusz maltempi/cusz-dev-build /bin/bash
# Example architectures (";"-separated when specifying)
# Volta : 70
# Turing : 75
# Ampere : 80 86
# Ada Lovelace : 89 (as of CUDA 11.8)
# Hopper : 90 (as of CUDA 11.8)
cmake .. -DCUSZ_BUILD_EXAMPLES=on \
-DCMAKE_BUILD_TYPE=Release \
-DCUSZ_BUILD_TESTS=on \
-DCMAKE_CUDA_ARCHITECTURES="75;80;86" \
-DCMAKE_INSTALL_PREFIX=[/path/to/install/dir]
make -j8
# Install to [/path/to/install/dir]
make install
# An optional testcase run can be done using `ctest`.
export PATH=$(pwd)/bin:$PATH ## specify the path temporarily
cd data && sh ./sh.get-sample-data ## download sample data
CESM=$(pwd)/cesm-CLDHGH-3600x1800 EB=1e-4
cusz -t f32 -m r2r -e ${EB} -i ${CESM} -l 3600x1800 -z --report time
cusz -i ${CESM}.cusza -x --compare ${CESM} --report time