arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.01753cs.DCcs.PF
收藏

m-CUBES一种高效可移植的GPU多维集成实现

m-CUBES An efficient and portable implementation of multi-dimensional integration for gpus

Ioannis Sakiotis, Kamesh Arumugam, Marc Paterno, Desh Ranjan, Balsa Terzic, Mohammad Zubair

摘要:

多维数值积分的任务在物理学和其他科学领域中经常遇到,例如,在模拟物理系统中的系统不确定性和贝叶斯参数估计的影响。多维集成在CPU上通常是时间限制性的。在众核架构上的高效实现具有挑战性,因为集成空间中的工作负载无法事先预测。我们提出了m-Cubes,著名的拉斯维加斯算法在GPU上执行的一种新的实现。Vegas变换积分变量,然后使用所得空间的自适应分区计算Monte Carlo积分估计。m-Cubes通过在处理器之间保持相对均匀的工作负载来提高GPU的性能。因此,我们为Nvidia GPU优化的Cuda实现优于过去文献中提出的并行化方法。我们进一步证明了效率的m-Cubes通过评估一个六维积分从宇宙学应用,实现显着的加速比CUBA库的CPU实现的VEGAS更高的精度。我们还评估了标准的被积函数测试套件的m-立方体。m-Cubes的性能优于Cuba和GSL库的串行实现,速度快了几个数量级,同时保持了相当的准确性。我们的方法产生的加速比至少为10时,与公开的Monte Carlo基于GPU的实现。总之,m-Cubes可以使用标准库和自定义实现来解决昂贵的积分。一个现代的C++接口头实现使m-Cubes可移植,允许它在复杂的管道中使用,易于定义有状态积分。与非Nvidia GPU的兼容性是通过我们使用Kokkos框架的m-Cubes的初始实现来实现的。

英文摘要:

The task of multi-dimensional numerical integration is frequently encountered in physics and other scientific fields, e.g., in modeling the effects of systematic uncertainties in physical systems and in Bayesian parameter estimation. Multi-dimensional integration is often time-prohibitive on CPUs. Efficient implementation on many-core architectures is challenging as the workload across the integration space cannot be predicted a priori. We propose m-Cubes, a novel implementation of the well-known Vegas algorithm for execution on GPUs. Vegas transforms integration variables followed by calculation of a Monte Carlo integral estimate using adaptive partitioning of the resulting space. m-Cubes improves performance on GPUs by maintaining relatively uniform workload across the processors. As a result, our optimized Cuda implementation for Nvidia GPUs outperforms parallelization approaches proposed in past literature. We further demonstrate the efficiency of m-Cubes by evaluating a six-dimensional integral from a cosmology application, achieving significant speedup and greater precision than the CUBA library's CPU implementation of VEGAS. We also evaluate m-Cubes on a standard integrand test suite. m-Cubes outperforms the serial implementations of the Cuba and GSL libraries by orders of magnitude speedup while maintaining comparable accuracy. Our approach yields a speedup of at least 10 when compared against publicly available Monte Carlo based GPU implementations. In summary, m-Cubes can solve integrals that are prohibitively expensive using standard libraries and custom implementations. A modern C++ interface header-only implementation makes m-Cubes portable, allowing its utilization in complicated pipelines with easy to define stateful integrals. Compatibility with non-Nvidia GPUs is achieved with our initial implementation of m-Cubes using the Kokkos framework.

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

↑