# Is FP64 support required for GPU accelerated runs?

**URL:** <https://gromacs.bioexcel.eu/t/is-fp64-support-required-for-gpu-accelerated-runs/8465>\
**Category:** User discussions\
**Tags:** gpu\
**Created:** [February 28, 2024, 10:29pm UTC](https://gromacs.bioexcel.eu/t/is-fp64-support-required-for-gpu-accelerated-runs/8465 "2024-02-28T22:29:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cordesm](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@cordesm](https://gromacs.bioexcel.eu/u/cordesm)\
**Post date:** [February 28, 2024, 10:30pm UTC](https://gromacs.bioexcel.eu/t/is-fp64-support-required-for-gpu-accelerated-runs/8465/1 "2024-02-28T22:30:00Z")

</div>

GROMACS version: 2022.3  
GROMACS modification: No

Hello,

I currently run GROMACS on a cluster and my lab has received funding and is looking to potentially purchase a Mercury 2x NVIDIA L40S GPU Node. The GPU’s do not support FP64, only FP32. We use a default mixed precision GROMACS build, and reading the manual ([https://manual.gromacs.org/current/reference-manual/definitions.html](https://manual.gromacs.org/current/reference-manual/definitions.html)) as well as a couple of other blog posts seem to imply that only FP32 support would be okay. My concern lies in the fact that some values including aggregates like the virial require double precision. Would these GPU’s be compatible with GROMACS or is FP64 support required?

Thanks.  
-Michael Cordes

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [February 29, 2024, 7:03am UTC](https://gromacs.bioexcel.eu/t/is-fp64-support-required-for-gpu-accelerated-runs/8465/2 "2024-02-29T07:03:16Z")

</div>

Double precision (FP64) cannot be used with GPU accelerated builds/runs at all, only mixed precision works. So, the GPUs are compatible with GROMACS, but if you really need to run with double precision the GPUs cannot be used.

In most cases mixed precision (GROMACS uses double precision for some variables, such as the virial) works as well as, and faster than, double precision. Unless you’ve already read [https://manual.gromacs.org/documentation/current/reference-manual/definitions.html#mixed-or-double-precision](https://manual.gromacs.org/documentation/current/reference-manual/definitions.html#mixed-or-double-precision) I would recommend it.
