27976

Porting numerical integration codes from CUDA to oneAPI: a case study

Ioannis Sakiotis, Kamesh Arumugam, Marc Paterno, Desh Ranjan, Balsa Terzic, Mohammad Zubair
Old Dominion University, Norfolk, VA 23529, USA
arXiv:2302.05730 [cs.DC], (17 Feb 2023)

@misc{https://doi.org/10.48550/arxiv.2302.05730,

   doi={10.48550/ARXIV.2302.05730},

   url={https://arxiv.org/abs/2302.05730},

   author={Sakiotis, Ioannis and Arumugam, Kamesh and Paterno, Marc and Ranjan, Desh and Terzic, Balsa and Zubair, Mohammad},

   keywords={Distributed, Parallel, and Cluster Computing (cs.DC), FOS: Computer and information sciences, FOS: Computer and information sciences},

   title={Porting numerical integration codes from CUDA to oneAPI: a case study},

   publisher={arXiv},

   year={2023},

   copyright={Creative Commons Attribution 4.0 International}

}

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.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: