The paper examines the impact of using IEEE half precision (fp16) arithmetic on the quality of wave simulations, focusing on the accumulation of roundoff errors. It demonstrates that naively switching to fp16 can lead to degradation in the solution quality, with undesirable wiggles and energy loss.
The key insights are:
The addition operations in the solution update, which form a disguised recursive sum, are identified as the main cause of the issues in fp16 simulations.
A remedy in the form of compensated sum is provided, which keeps track of the lost bits during floating-point addition and applies the compensation later.
Numerical experiments on both acoustic and elastic wave equations show that applying compensated sum can greatly restore the solution quality in fp16 simulations, with the results closely matching those from fp32 and fp64 simulations.
The paper also discusses other potential issues that may arise in fp16 simulations, such as limited number range and potential errors in the discretization operators, which warrant further investigation.
Overall, the paper demonstrates that with appropriate techniques like compensated summation, half precision arithmetic can be effectively utilized for wave simulations, providing significant memory and performance benefits.
إلى لغة أخرى
من محتوى المصدر
arxiv.org
الرؤى الأساسية المستخلصة من
by Longfei Gao,... في arxiv.org 09-19-2024
https://arxiv.org/pdf/2310.00236.pdfاستفسارات أعمق