arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.13536cs.MS
收藏

使用准多字算法的高精度算术稀疏迭代求解器

Sparse Iterative Solvers Using High-Precision Arithmetic with Quasi Multi-Word Algorithms

Information Technology Center Nagoya University(名古屋大学信息技术中心);Shibaura Institute of Technology(芝浦工业大学)

Daichi Mukunoki, Katsuhisa Ozaki

AI总结:

本研究评估了基于共轭梯度法的稀疏迭代求解器中准双字和三字算术的性能,发现准三字算法在适当归一化下能减少运行时间并保持精度,可作为双字算法的替代方案。

摘要:

在数值计算中,要获得准确的结果,高精度算术是一种直接的方法。然而,大多数处理器缺乏对双精度(FP64)之外浮点格式的硬件支持。双字算术(Dekker 1971)通过使用标准浮点运算来表示尾数长度两倍的数字,从而扩展了精度。在此基础上,人们提出了各种多字算术方法,通过组合额外的字来进一步提高精度。还引入了简化变体,称为准算法,它以一定的精度损失换取计算成本的降低。在本研究中,我们研究了基于共轭梯度法的稀疏迭代求解器中,双字和三字算术的准算法的性能,并将它们与非准算法和标准FP64进行了比较。我们在x86处理器上评估了执行时间、收敛所需的迭代次数以及求解精度。尽管准算法需要适当的归一化以保持精度——没有归一化则无法收敛——但在正确应用归一化时,它们仍能减少运行时间,同时保持与完整多字算法相当的精度。特别是,准三字算术可以产生更准确的解,而相对于双字算术及其准变体,执行时间没有显著增加。此外,对于某些问题,迭代次数的减少有助于额外的加速。因此,在稀疏迭代求解器中,准三字算术可以成为传统双字算术的一个有吸引力的替代方案。

英文摘要:

To obtain accurate results in numerical computation, high-precision arithmetic is a straightforward approach. However, most processors lack hardware support for floating-point formats beyond double precision (FP64). Double-word arithmetic (Dekker 1971) extends precision by using standard floating-point operations to represent numbers with twice the mantissa length. Building on this concept, various multi-word arithmetic methods have been proposed to further increase precision by combining additional words. Simplified variants, known as quasi algorithms, have also been introduced, which trade a certain loss of accuracy for reduced computational cost. In this study, we investigate the performance of quasi algorithms for double- and triple-word arithmetic in sparse iterative solvers based on the Conjugate Gradient method, and compare them with both non-quasi algorithms and standard FP64. We evaluate execution time on an x86 processor, the number of iterations to convergence, and solution accuracy. Although quasi algorithms require appropriate normalization to preserve accuracy - without it, convergence cannot be achieved - they can still reduce runtime when normalization is applied correctly, while maintaining accuracy comparable to full multi-word algorithms. In particular, quasi triple-word arithmetic can yield more accurate solutions without significantly increasing execution time relative to double-word arithmetic and its quasi variant. Furthermore, for certain problems, a reduction in iteration count contributes to additional speedup. Thus, quasi triple-word arithmetic can serve as a compelling alternative to conventional double-word arithmetic in sparse iterative solvers.

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

↑