Single precision #4473
Replies: 1 comment 3 replies
-
It depends on the simulation you want to run, and there are a wide variety you may consider with Oceananigans. We did a bit of investigation on https://github.com/PRONTOLab/GB-25 and found that single precision was unstable for a hydrostatic model using WENO-only dissipation. 9th order was quite unstable, but some cases with purely 5th order WENOVectorInvariant also exhibited more instability than with Float64. I think it's possible that 3D turbulence cases with NonhydrostaticModel are more stable than quasi-2D cases with the hydrostatic model + WENOVectorInvariant. But you may have to adjust the WENO order and you may find that the solutions are more dissipative. I'd suspect that DNS is less sensitive, but I'm not sure. The reason being that solutions are smooth at the grid scale and we probably want second-order advection, not WENO. One key question is whether the likely increased level of numerical dissipation one gets with single precision (and therefore the need for higher resolution) offsets the savings of single precision, or whether single precision still provides some speed up. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I was wondering if anyone has done any validation in single precision? The last I heard no one had validated if the truncation is a problem.
I have access to some Nvidia L40S which are faster than A100s for single precision but can't do double precision and was thinking about trying to run some of my models in single precision instead.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions