使用SYCL为HAL分子动力学软件包获得跨平台并行性
Gaining Cross-Platform Parallelism for HAL's Molecular Dynamics Package using SYCL
AI总结:
本文以HAL's MD package为例,研究将分子动力学代码从CUDA迁移到SYCL的策略,实现了跨GPU供应商的可移植性,并在部分内核上获得性能提升,同时在CPU上也取得了显著加速。
摘要:
分子动力学模拟是科学计算中受益于GPU加速的方法之一。对于这些设备,SYCL是一种用于编写可移植代码的有前景的API。在本文中,我们介绍了“HAL's MD package”的案例研究,该软件包已成功从CUDA迁移到SYCL。我们描述了在移植代码过程中所遵循的不同策略。遵循这些策略,我们实现了跨主要GPU供应商的代码可移植性。根据实际内核的不同,既观察到了显著的性能提升,也观察到了性能下降。作为迁移过程的一个附带效果,我们还获得了在CPU上执行时令人印象深刻的加速。
英文摘要:
Molecular dynamics simulations are one of the methods in scientific computing that benefit from GPU acceleration. For those devices, SYCL is a promising API for writing portable codes. In this paper, we present the case study of "HAL's MD package" that has been successfully migrated from CUDA to SYCL. We describe the different strategies that we followed in the process of porting the code. Following these strategies, we achieved code portability across major GPU vendors. Depending on the actual kernels, both significant performance improvements and regressions are observed. As a side effect of the migration process, we obtained impressing speedups also for execution on CPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。