通过在GPU上高效实现块Krylov空间求解器来推动内存带宽限制
Pushing Memory Bandwidth Limitations Through Efficient Implementations of Block-Krylov Space Solvers on GPUs
摘要:
核物理中的格子量子色动力学模拟得益于大量的算法进步,如多重网格和特征向量收缩。这些改进的时间解决方案,但不减轻固有的内存带宽限制的矩阵向量运算主导迭代求解器。对多个向量批处理此操作并利用缓存和寄存器阻塞可以产生超线性加速。Block-Krylov求解器可以自然地利用这种批量矩阵-向量运算,通过在求解之间共享Krylov空间来进一步减少求解的迭代。然而,实际的实现方式通常遭受向量-向量操作的数量的二次缩放。使用QUDA库,我们提出了一个块CG求解器在NVIDIA GPU上的实现,它降低了向量-向量运算的内存带宽复杂度,从二次到线性。我们提出了HISQ离散化的结果,与NVIDIA的SaturnV集群上高度优化的独立Krylov解决方案相比,速度提高了5倍。
英文摘要:
Lattice quantum chromodynamics simulations in nuclear physics have benefited from a tremendous number of algorithmic advances such as multigrid and eigenvector deflation. These improve the time to solution but do not alleviate the intrinsic memory-bandwidth constraints of the matrix-vector operation dominating iterative solvers. Batching this operation for multiple vectors and exploiting cache and register blocking can yield a super-linear speed up. Block-Krylov solvers can naturally take advantage of such batched matrix-vector operations, further reducing the iterations to solution by sharing the Krylov space between solves. However, practical implementations typically suffer from the quadratic scaling in the number of vector-vector operations. Using the QUDA library, we present an implementation of a block-CG solver on NVIDIA GPUs which reduces the memory-bandwidth complexity of vector-vector operations from quadratic to linear. We present results for the HISQ discretization, showing a 5x speedup compared to highly-optimized independent Krylov solves on NVIDIA's SaturnV cluster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。