skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Revisiting Huffman Coding: Toward Extreme Performance on Modern GPU Architectures

Conference ·

Today's high-performance computing (HPC) applications are producing vast volumes of data, which are challenging to store and transfer efficiently during the execution, such that data compression is becoming a critical technique to mitigate the storage burden and data movement cost. Huffman coding is arguably the most efficient Entropy coding algorithm in information theory, such that it could be found as a fundamental step in many modern compression algorithms such as DEFLATE. On the other hand, today's HPC applications are more and more relying on the accelerators such as GPU on supercomputers, while Huffman encoding suffers from low throughput on GPUs, resulting in a significant bottleneck in the entire data processing. In this paper, we propose and implement an efficient Huffman encoding approach based on modern GPU architectures, which addresses two key challenges: (1) how to parallelize the entire Huffman encoding algorithm, including codebook construction, and (2) how to fully utilize the high memory-bandwidth feature of modern GPU architectures. The detailed contribution is fourfold. (1) We develop an efficient parallel codebook construction on GPUs that scales effectively with the number of input symbols. (2) We propose a novel reduction based encoding scheme that can efficiently merge the codewords on GPUs. (3) We optimize the overall GPU performance by leveraging the state-of-the-art CUDA APIs such as Cooperative Groups. (4) We evaluate our Huffman encoder thoroughly using six real-world application datasets on two advanced GPUs and compare with our implemented multi-threaded Huffman encoder. Experiments show that our solution can improve the encoding throughput by up to 5.0x and 6.8x on NVIDIA RTX 5000 and V100, respectively, over the state-of-the-art GPU Huffman encoder, and by up to 3.3x over the multi-thread encoder on two 28-core Xeon Platinum 8280 CPUs.

Research Organization:
Argonne National Lab. (ANL), Argonne, IL (United States)
Sponsoring Organization:
USDOE Exascale Computing Project (ECP); USDOE Office of Science (SC); National Science Foundation (NSF); University of Texas - Austin - Texas Advanced Computing Center
DOE Contract Number:
AC02-06CH11357
OSTI ID:
1864157
Resource Relation:
Conference: 35th IEEE International Parallel and Distributed Processing Symposium, 05/17/21 - 05/21/21, Portland, OR, US
Country of Publication:
United States
Language:
English

Similar Records

Revisiting Huffman Coding: Toward Extreme Performance on Modern GPU Architectures
Conference · Sat May 01 00:00:00 EDT 2021 · OSTI ID:1864157

Optimizing Error-Bounded Lossy Compression for Scientific Data on GPUs
Conference · Fri Jan 01 00:00:00 EST 2021 · OSTI ID:1864157

Evaluating Modern GPU Interconnect: PCIe, NVLink, NV-SLI, NVSwitch and GPUDirect
Journal Article · Wed Jan 01 00:00:00 EST 2020 · IEEE Transactions on Parallel and Distributed Systems · OSTI ID:1864157

Related Subjects