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

利用SYCL比较异构共轭梯度和Cholesky求解器在各种硬件上的性能

Comparing the Performance of Heterogeneous Conjugate Gradient and Cholesky Solvers on Various Hardware Using SYCL

University of Stuttgart(斯图加特大学)

Tim Thüring, Alexander Strack, Dirk Pflüger

AI总结:

本文提出基于SYCL的异构共轭梯度和Cholesky求解器,利用CPU和GPU加速大型矩阵运算,实验证明在GPU-only实现上,CG方法提速32%,Cholesky分解提速29%。

摘要:

许多重要的现实应用,如高斯过程系统识别,涉及求解对称正定矩阵的线性系统。迭代CG方法和基于Cholesky分解的直接求解器是两种常用的解决方法。由于在现实场景中往往需要解决非常大的系统,GPU常被用来加速计算。然而,仅利用GPU的同构方法无法充分利用现代HPC系统中强大的CPU。本文提出了基于SYCL的多供应商异构实现,同时利用异构系统的CPU和GPU。此外,我们还比较了这些方法与传统同构方法的运行时间行为。结果表明,对于大型矩阵,我们的异构实现比GPU-only实现快32%(CG方法)和29%(Cholesky分解)。此外,在包含NVIDIA、AMD和Intel GPU的多个系统中,我们的Cholesky分解异构实现至少能将运行时间减少12%。

英文摘要:

Many important real-world applications, such as System Identification with Gaussian Processes, involve solving linear systems with symmetric positive-definite matrices. The iterative CG method and direct solvers based on the Cholesky decomposition are two popular methods that can be applied in this case. Since often very large systems have to be solved when dealing with such real-world scenarios, GPUs are commonly used to accelerate the computations. However, homogeneous approaches that only leverage the GPU in the system do not take full advantage of the often powerful CPUs located in modern HPC systems. In this work, we present multi-vendor, heterogeneous implementations of the CG method and the Cholesky decomposition that leverage the CPU and GPU of a heterogeneous system simultaneously using SYCL. Furthermore, we compare their runtime behavior to traditional, homogeneous approaches. The results show that for large matrices, our heterogeneous implementation is up to 32 percent faster for the CG method and up to 29 percent faster for the Cholesky decomposition compared to the corresponding GPU-only implementations. In addition, for large matrices, our heterogeneous implementation of the Cholesky decomposition can achieve at least 12 percent faster runtimes across several systems with GPUs from NVIDIA, AMD, and Intel.

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

↑