异构多核架构下基于动态划分的JPEG解压缩
Dynamic Partitioning-based JPEG Decompression on Heterogeneous Multicore Architectures
摘要:
随着社交网络的出现和计算摄影的改进,每天有数十亿张JPEG图像被共享和查看。桌面、平板电脑和智能手机构成了用于显示JPEG图像的绝大多数硬件平台。尽管这些平台是异构多核的,但还没有能够联合系统的CPU和GPU进行JPEG解码的方法。在本文中,我们介绍了一种新的JPEG解码方案的异构体系结构组成的CPU和OpenCL可编程GPU。我们采用离线分析步骤来确定系统的CPU和GPU相对于JPEG解码的性能。对于给定的JPEG图像,我们的性能模型使用(1)CPU和GPU性能特征,(2)图像熵和(3)图像的宽度和高度来平衡底层硬件上的JPEG解码工作负载。我们的运行时分区和调度方案利用任务,数据和流水线并行通过调度CPU上的非并行熵解码任务,而反余弦变换(IDCT),颜色转换和上采样进行的CPU和GPU。我们的内核已针对GPU存储层次结构进行了优化。我们已经实现了libjpeg-turbo库,这是一个工业强度的JPEG编码和解码引擎的上下文中提出的方法。Libjpeg-turbo针对ARM和x86的手动优化SIMD例程构成了与所提出方法进行比较的竞争性标尺。使用libjpeg-turbo改进我们的方法,为异构多核重新设计遗留代码的软件工程方面提供了见解。
英文摘要:
With the emergence of social networks and improvements in computational photography, billions of JPEG images are shared and viewed on a daily basis. Desktops, tablets and smartphones constitute the vast majority of hardware platforms used for displaying JPEG images. Despite the fact that these platforms are heterogeneous multicores, no approach exists yet that is capable of joining forces of a system's CPU and GPU for JPEG decoding. In this paper we introduce a novel JPEG decoding scheme for heterogeneous architectures consisting of a CPU and an OpenCL-programmable GPU. We employ an offline profiling step to determine the performance of a system's CPU and GPU with respect to JPEG decoding. For a given JPEG image, our performance model uses (1) the CPU and GPU performance characteristics, (2) the image entropy and (3) the width and height of the image to balance the JPEG decoding workload on the underlying hardware. Our run-time partitioning and scheduling scheme exploits task, data and pipeline parallelism by scheduling the non-parallelizable entropy decoding task on the CPU, whereas inverse cosine transformations (IDCTs), color conversions and upsampling are conducted on both the CPU and the GPU. Our kernels have been optimized for GPU memory hierarchies. We have implemented the proposed method in the context of the libjpeg-turbo library, which is an industrial-strength JPEG encoding and decoding engine. Libjpeg-turbo's hand-optimized SIMD routines for ARM and x86 constitute a competitive yardstick for the comparison to the proposed approach. Retro-fitting our method with libjpeg-turbo provided insights on the software-engineering aspects of re-engineering legacy code for heterogeneous multicores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。