pSZ/cuSZ

GitHub

A GPU-based error-bounded lossy compressor for scientific data.

pSZ/cuSZ is a GPU implementation of the SZ algorithm. It was the first GPU-practical framework of error-bounded lossy compression for scientific data (circa 2020), built to improve SZ's throughput on heterogeneous HPC systems. It focuses on the CUDA backend, with other GPU-parallel backends in development. The project was formerly named cuSZ, which remains the short form.

© 2025 Argonne National Laboratory and Oakland University. BSD 3-Clause.

cuSZ PACT '20 ACM arXiv and cuSZ+ CLUSTER '21 IEEE arXiv

  • Basic framework: N-D Lorenzo prediction and Huffman encoding on GPU.
  • Algorithmic novelty: fully parallelized N-D Lorenzo prediction and reverse prediction.
  • Pipeline novelty: alternative route for cases with extremely "smooth" data.

Kindly note: If you mention pSZ/cuSZ in your paper, please use the bibliography entries below.

@inproceedings{tian2020cusz,
      title = {{\textsc cuSZ}: An efficient GPU-based error-bounded lossy compression framework for scientific data},
     author = {Tian, Jiannan and Di, Sheng and Zhao, Kai and Rivera, Cody and Fulp, Megan Hickman and Underwood, Robert and Jin, Sian and Liang, Xin and Calhoun, Jon and Tao, Dingwen and Cappello, Franck},
       year = {2020}, month = {10}, url = {https://doi.org/10.1145/3410463.3414624}, address = {Atlanta (virtual event), GA, USA},
  booktitle = {PACT '20: Proceedings of the ACM International Conference on Parallel Architectures and Compilation Techniques}}

@inproceedings{tian2021cuszplus,
      title = {Optimizing error-bounded lossy compression for scientific data on GPUs},
     author = {Tian, Jiannan and Di, Sheng and Yu, Xiaodong and Rivera, Cody and Zhao, Kai and Jin, Sian and Feng, Yunhe and Liang, Xin and Tao, Dingwen and Cappello, Franck},
       year = {2021}, month = {09}, url = {https://doi.ieeecomputersociety.org/10.1109/Cluster48925.2021.00047}, series = {CLUSTER '21}, address = {Portland (virtual event), OR, USA},
  booktitle = {2021 IEEE International Conference on Cluster Computing (CLUSTER)}}
git clone --recursive https://github.com/szcompressor/cuSZ.git cusz-latest
cd cusz-latest && mkdir build && cd build
cmake .. -DPSZ_BACKEND=cuda -DPSZ_BUILD_EXAMPLES=on -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_CUDA_ARCHITECTURES="<sm>"
make -j
make install

Needs CUDA 11.4 onward, a C++17 host compiler (GCC 9 onward or any Clang), and CMake 3.18 onward. Without CMAKE_CUDA_ARCHITECTURES (or the CUDAARCHS environment variable), the build targets 75 only.

datasets.csv

Dataset Dim. Description
EXAALT 1D molecular dynamics simulation
HACC 1D cosmology, particle simulation
CESM-ATM 2D climate simulation
EXAFEL 2D images from the LCLS instrument
Hurricane 3D weather simulation
NYX 3D adaptive mesh hydrodynamics and N-body cosmology

The fields are available from SDRBench.

people.txt

Developers. Jiannan Tian (primary/PI), Robert Underwood (deployment), Jinyang Liu, Shixun Wu, Jinwen Pan (cuSZ-i/Hi), Cody Rivera (Huffman coding), Sheng Di and Franck Cappello (administrative PIs).

Contributors. Jon Calhoun, Wenyu Gai, Megan Hickman Fulp, Xin Liang, Kai Zhao.

With thanks to Dingwen Tao, who advised the project from 2020 to 2024, and to Dominique LaSalle (NVIDIA), mentor at the Argonne GPU Hackathon 2021.

Fuller instructions, including the recommended GCC and Clang combinations, live in the wiki: build and install, command-line use, API reference, and Python.

Acknowledgements

Supported by the Exascale Computing Project (17-SC-20-SC), a collaboration of the DOE Office of Science and the NNSA; by the U.S. Department of Energy, Office of Science, under contract DE-AC02-06CH11357; and by the National Science Foundation under grants CSSI/OAC #2104023, #2247080, OAC #2247060, CSSI/OAC #2311875, #2311876, CSSI/OAC #2514036, and #2609480.