Half precision wave simulation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Gao, Longfei, Harms, Kevin
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912032314359808
author Gao, Longfei
Harms, Kevin
author_facet Gao, Longfei
Harms, Kevin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_00236
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Half precision wave simulation
Gao, Longfei
Harms, Kevin
Numerical Analysis
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.
title Half precision wave simulation
topic Numerical Analysis
url https://arxiv.org/abs/2310.00236