arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.12528math.NAcs.NA
收藏

一种混合精度LOBPCG算法

A mixed precision LOBPCG algorithm

Daniel Kressner, Yuxin Ma, Meiyue Shao

AI总结:

本文提出混合精度LOBPCG算法,利用低精度Cholesky分解作为预条件子并结合混合精度正交化,理论分析与实验表明收敛性几乎不受影响,在CPU和GPU上计算时间可减少1.4至2.0倍。

摘要:

局部最优块预条件共轭梯度(LOBPCG)算法是一种用于计算大型Hermitian正定矩阵A的若干最小特征值及相应特征向量的常用方法。本文提出了一种LOBPCG的混合精度变体,该变体使用以降低精度计算的A的(稀疏)Cholesky分解作为预条件子。为进一步提升性能,提出了一种混合精度正交化策略。为分析降低预条件子精度对性能的影响,我们对PINVIT(LOBPCG的一种简化变体)进行了舍入误差与收敛性分析。理论结果预测精度降低对收敛性的影响仍然很小,数值实验也证实了这一点。在实际应用中,我们的混合精度LOBPCG算法在CPU和GPU上通常可将计算时间减少1.4至2.0倍。

英文摘要:

The locally optimal block preconditioned conjugate gradient (LOBPCG) algorithm is a popular approach for computing a few smallest eigenvalues and the corresponding eigenvectors of a large Hermitian positive definite matrix A. In this work, we propose a mixed precision variant of LOBPCG that uses a (sparse) Cholesky factorization of A computed in reduced precision as the preconditioner. To further enhance performance, a mixed precision orthogonalization strategy is proposed. To analyze the impact of reducing precision in the preconditioner on performance, we carry out a rounding error and convergence analysis of PINVIT, a simplified variant of LOBPCG. Our theoretical results predict and our numerical experiments confirm that the impact on convergence remains marginal. In practice, our mixed precision LOBPCG algorithm typically reduces the computation time by a factor of 1.4--2.0 on both CPUs and GPUs.

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

↑