将CUDA迁移至SYCL的经验教训:基于ROOT RDataFrame的高能物理案例研究
Lessons Learned Migrating CUDA to SYCL: A HEP Case Study with ROOT RDataFrame
AI总结:
本文以ROOT RDataFrame的直方图填充操作为案例,详述从CUDA到SYCL的迁移过程与集成挑战,并通过对比AdaptiveCpp、DPC++和CUDA的性能分析,为SYCL开发者提供实践指导。
摘要:
位于欧洲核子研究中心(CERN)的世界上最大的粒子加速器产生拍字节级数据,需要高效分析以研究宇宙的基本结构。ROOT是一个为此目的开发的开源C++数据分析框架。其高级数据分析接口RDataFrame目前仅支持CPU并行。鉴于计算设施日益异构化,高效支持GPGPU以利用可用资源变得至关重要。SYCL允许单源实现,从而支持不同架构。在本文中,我们描述了一个CUDA实现及其向SYCL的迁移过程,重点关注RDataFrame中的核心高能物理操作——直方图填充。我们详细说明了将SYCL集成到一个庞大而复杂的代码库中所面临的挑战。此外,我们对两种SYCL编译器AdaptiveCpp和DPC++以及参考CUDA实现进行了广泛的比较性能分析。我们重点介绍了遇到的性能瓶颈以及用于检测这些瓶颈的方法。基于我们的发现,我们为SYCL应用程序开发者提供了可操作的见解。
英文摘要:
The world's largest particle accelerator, located at CERN, produces petabytes of data that need to be analysed efficiently, to study the fundamental structures of our universe. ROOT is an open-source C++ data analysis framework, developed for this purpose. Its high-level data analysis interface, RDataFrame, currently only supports CPU parallelism. Given the increasing heterogeneity in computing facilities, it becomes crucial to efficiently support GPGPUs to take advantage of the available resources. SYCL allows for a single-source implementation, which enables support for different architectures. In this paper, we describe a CUDA implementation and the migration process to SYCL, focusing on a core high energy physics operation in RDataFrame -- histogramming. We detail the challenges that we faced when integrating SYCL into a large and complex code base. Furthermore, we perform an extensive comparative performance analysis of two SYCL compilers, AdaptiveCpp and DPC++, and the reference CUDA implementation. We highlight the performance bottlenecks that we encountered, and the methodology used to detect these. Based on our findings, we provide actionable insights for developers of SYCL applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。