数值积分程序从CUDA移植到oneAPI的实例研究
Porting numerical integration codes from CUDA to oneAPI: a case study
摘要:
我们介绍了将优化的CUDA实现移植到oneAPI的经验。我们专注于数值积分的用例,特别是PAGANI和$m$ -立方体的CUDA实现。我们面临着几个导致oneAPI端口性能下降的挑战。这些差异包括每个线程使用的寄存器,编译器优化以及CUDA库调用到oneAPI等效项的映射。在解决了这些挑战之后,我们在各种特性的许多被积体上测试了PAGANI和m-Cubes积分器。为了评估移植的质量,我们收集了CUDA和oneAPI在Nvidia V100 GPU上实现的性能指标。我们发现oneAPI端口通常可以实现与CUDA版本相当的性能,并且它们最多慢10%。
英文摘要:
We present our experience in porting optimized CUDA implementations to oneAPI. We focus on the use case of numerical integration, particularly the CUDA implementations of PAGANI and $m$-Cubes. We faced several challenges that caused performance degradation in the oneAPI ports. These include differences in utilized registers per thread, compiler optimizations, and mappings of CUDA library calls to oneAPI equivalents. After addressing those challenges, we tested both the PAGANI and m-Cubes integrators on numerous integrands of various characteristics. To evaluate the quality of the ports, we collected performance metrics of the CUDA and oneAPI implementations on the Nvidia V100 GPU. We found that the oneAPI ports often achieve comparable performance to the CUDA versions, and that they are at most 10% slower.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。