在GPU上加速JPEG解压缩
Accelerating JPEG Decompression on GPUs
摘要:
JPEG压缩格式几十年来一直是有损图像压缩的标准,在图像质量的微小感知损失下提供高压缩率。对于GPU加速的计算机视觉和深度学习任务,例如图像分类模型的训练,由于内存带宽的限制,高效的JPEG解码至关重要。由于许多解码器实现都是基于CPU的,因此解码后的图像数据必须通过PCI-E等互连传输到GPU等加速器,这意味着吞吐率降低。因此,JPEG解码代表了这些流水线中的相当大的瓶颈。相比之下,通过使用GPU加速的解码器可以大大提高效率。在这种情况下,只需要传输压缩数据,因为解码将由加速器处理。为了设计这种基于GPU的解码器,必须在细粒度级别上并行化各个算法。然而,单个JPEG文件的并行解码代表了一项复杂的任务。在本文中,我们提出了一种有效的方法,JPEG图像解压缩的GPU上,实现了一个重要的子集的JPEG标准。所提出的算法在任意位置的比特流中的码字位置进行评估,从而使独立块的并行解压缩。我们的性能评估表明,在A100(V100)GPU上,我们的实现可以超过最先进的实现libjpeg-turbo(CPU)和nvJPEG(GPU)的一个因素高达51(34)和8.0(5.7)。此外,它在A100上使用专用硬件JPEG解码器加速的nvJPEG上实现了高达3.4的加速比。
英文摘要:
The JPEG compression format has been the standard for lossy image compression for over multiple decades, offering high compression rates at minor perceptual loss in image quality. For GPU-accelerated computer vision and deep learning tasks, such as the training of image classification models, efficient JPEG decoding is essential due to limitations in memory bandwidth. As many decoder implementations are CPU-based, decoded image data has to be transferred to accelerators like GPUs via interconnects such as PCI-E, implying decreased throughput rates. JPEG decoding therefore represents a considerable bottleneck in these pipelines. In contrast, efficiency could be vastly increased by utilizing a GPU-accelerated decoder. In this case, only compressed data needs to be transferred, as decoding will be handled by the accelerators. In order to design such a GPU-based decoder, the respective algorithms must be parallelized on a fine-grained level. However, parallel decoding of individual JPEG files represents a complex task. In this paper, we present an efficient method for JPEG image decompression on GPUs, which implements an important subset of the JPEG standard. The proposed algorithm evaluates codeword locations at arbitrary positions in the bitstream, thereby enabling parallel decompression of independent chunks. Our performance evaluation shows that on an A100 (V100) GPU our implementation can outperform the state-of-the-art implementations libjpeg-turbo (CPU) and nvJPEG (GPU) by a factor of up to 51 (34) and 8.0 (5.7). Furthermore, it achieves a speedup of up to 3.4 over nvJPEG accelerated with the dedicated hardware JPEG decoder on an A100.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。