arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.13248cs.DC
收藏

基于CPU的高性能可移植反投影算法:不可知数据局部性和向量化优化

Performance Portable Back-projection Algorithms on CPUs: Agnostic Data Locality and Vectorization Optimizations

Peng Chen, Mohamed Wahib, Xiao Wang, Shinichiro Takizawa, Takahiro Hirofuchi, Hirotaka Ogawa, Satoshi Matsuoka

摘要:

计算机断层扫描(CT)是一种关键的3D成像技术,其基本上依赖于计算密集的反投影操作来生成3D体积。GPU通常用于生产CT设备中的反投影。然而,随着功率受限的微型CT设备的兴起,以及在性能上与GPU相当的CPU的出现,CPU的背投影可能变得有利。与GPU不同,在CPU上提取反投影算法的并行性是复杂的,因为并行性和局部性没有明确定义和程序员控制,例如使用CUDA时就是这种情况。我们提出了一个新的反投影算法,减少了算术计算,鲁棒地使矢量化,执行定期的内存访问模式,并最大限度地提高数据的局部性。我们还实现了新的算法作为高效的反投影内核,在广泛的CPU性能便携。使用来自不同供应商和不同代的各种CPU进行的性能评估表明,我们的反向投影实现比最广泛使用和优化的开放库的多线程实现平均加速5.2倍。凭借最先进的CPU,我们的性能可与顶级GPU相媲美。

英文摘要:

Computed Tomography (CT) is a key 3D imaging technology that fundamentally relies on the compute-intense back-projection operation to generate 3D volumes. GPUs are typically used for back-projection in production CT devices. However, with the rise of power-constrained micro-CT devices, and also the emergence of CPUs comparable in performance to GPUs, back-projection for CPUs could become favorable. Unlike GPUs, extracting parallelism for back-projection algorithms on CPUs is complex given that parallelism and locality are not explicitly defined and controlled by the programmer, as is the case when using CUDA for instance. We propose a collection of novel back-projection algorithms that reduce the arithmetic computation, robustly enable vectorization, enforce a regular memory access pattern, and maximize the data locality. We also implement the novel algorithms as efficient back-projection kernels that are performance portable over a wide range of CPUs. Performance evaluation using a variety of CPUs from different vendors and generations demonstrates that our back-projection implementation achieves on average 5.2x speedup over the multi-threaded implementation of the most widely used, and optimized, open library. With a state-of-the-art CPU, we reach performance that rivals top-performing GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑