arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.00356cs.DC
收藏

面向高斯过程的第二类修正贝塞尔函数GPU加速实现

GPU-Accelerated Modified Bessel Function of the Second Kind for Gaussian Processes

Zipei Geng, Sameh Abdulah, Ying Sun, Hatem Ltaief, David E. Keyes, Marc G. Genton

AI总结:

本研究提出了一种不依赖CPU的GPU端第二类修正贝塞尔函数稳健实现,精度优于GSL且单A100 GPU性能提升2.68倍,集成至ExaGeoStat后矩阵生成最高加速12.62倍。

摘要:

第二类修正贝塞尔函数广泛应用于物理学、工程学、空间统计学和机器学习领域。由于包括机器学习在内的现代科学应用依赖GPU进行加速,为修正贝塞尔函数等特殊函数提供稳健的GPU端实现对于性能至关重要。现有的第二类修正贝塞尔函数实现依赖于CPU,且对某些应用所需的全数值范围覆盖有限。在本研究中,我们提出了一种在GPU上稳健实现第二类修正贝塞尔函数的方法,消除了对CPU主机的依赖。我们覆盖了实际应用中常用的数值范围,以Mathematica作为权威参考,与GNU Scientific Library (GSL)等常见库相比,提供了较高的精度。使用单个A100 GPU,我们的GPU加速方法相比40核Intel Cascade Lake CPU上的GSL实现了2.68倍的性能提升。我们的实现被集成到ExaGeoStat(用于高斯过程建模的HPC框架)中,在生成协方差矩阵时,Matern协方差函数需要用到第二类修正贝塞尔函数。使用四个A100 GPU,我们将ExaGeoStat中的矩阵生成过程最高加速了12.62倍,同时在使用合成和真实数据集进行建模和预测操作时,保持了几乎相同的精度。

英文摘要:

Modified Bessel functions of the second kind are widely used in physics, engineering, spatial statistics, and machine learning. Since contemporary scientific applications, including machine learning, rely on GPUs for acceleration, providing robust GPU-hosted implementations of special functions, such as the modified Bessel function, is crucial for performance. Existing implementations of the modified Bessel function of the second kind rely on CPUs and have limited coverage of the full range of values needed in some applications. In this work, we present a robust implementation of the modified Bessel function of the second kind on GPUs, eliminating the dependence on the CPU host. We cover a range of values commonly used in real applications, providing high accuracy compared to common libraries like the GNU Scientific Library (GSL) when referenced to Mathematica as the authority. Our GPU-accelerated approach also demonstrates a 2.68X performance improvement using a single A100 GPU compared to the GSL on 40-core Intel Cascade Lake CPUs. Our implementation is integrated into ExaGeoStat, the HPC framework for Gaussian process modeling, where the modified Bessel function of the second kind is required by the Matern covariance function in generating covariance matrices. We accelerate the matrix generation process in ExaGeoStat by up to 12.62X with four A100 GPUs while maintaining almost the same accuracy for modeling and prediction operations using synthetic and real datasets.

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

↑