半精度波模拟
Half precision wave simulation
AI总结:
针对半精度运算在时域波模拟中因舍入误差累积导致解质量下降的问题,提出以补偿和为解决方案,通过数值实验验证了其在声波、弹性波模拟中的有效性。
摘要:
近年来,得益于人工智能与机器学习应用的发展,半精度浮点运算已在硬件和软件栈中获得广泛支持。与单精度或双精度运算相比,采用半精度运算可显著降低内存占用。对于时域波模拟这类内存受限的应用而言,这一特性颇具吸引力。然而,半精度数据格式的位宽更窄,会因舍入误差增大导致解的质量下降。本研究通过精心设计的数值实验,阐明了波模拟中舍入误差累积所造成的负面影响,具体将波动方程的能量守恒特性作为便捷的诊断工具。随后提出了以补偿和(compensated sum)为形式的相应解决方案,并在原生支持半精度运算的硬件上,通过声波和弹性波方程的数值算例验证了该方法的有效性。
英文摘要:
In recent years, half precision floating-point arithmetic has gained wide support in hardware and software stack thanks to the advance of artificial intelligence and machine learning applications. Operating at half precision can significantly reduce the memory footprint comparing to operating at single or double precision. For memory bound applications such as time domain wave simulations, this is an attractive feature. However, the narrower width of the half precision data format can lead to degradation of the solution quality due to larger roundoff errors. In this work, we illustrate with carefully designed numerical experiments the negative impact caused by the accumulation of roundoff errors in wave simulations. Specifically, the energy-conserving property of the wave equations is employed as a convenient diagnosis tool. The corresponding remedy in the form of compensated sum is then provided, with its efficacy demonstrated using numerical examples with both acoustic and elastic wave equations on hardware that support half precision arithmetic natively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。