# No GPU is detected despite "gmx --version" detecting the GPU

**URL:** <https://gromacs.bioexcel.eu/t/no-gpu-is-detected-despite-gmx-version-detecting-the-gpu/5596>\
**Category:** User discussions\
**Tags:** mdrun\
**Created:** [January 18, 2023, 6:07pm UTC](https://gromacs.bioexcel.eu/t/no-gpu-is-detected-despite-gmx-version-detecting-the-gpu/5596 "2023-01-18T18:07:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio1](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@sergio1](https://gromacs.bioexcel.eu/u/sergio1)\
**Post date:** [January 18, 2023, 6:07pm UTC](https://gromacs.bioexcel.eu/t/no-gpu-is-detected-despite-gmx-version-detecting-the-gpu/5596/1 "2023-01-18T18:07:39Z")

</div>

GROMACS version: 2022.4  
GROMACS modification: No  
I am trying to run GROMACS and I am getting the following error:  
“Cannot run short-ranged nonbonded interactions on a GPU because no GPU is detected”.

When looking up this error, in every single thread I have read, when the user gets this error and runs “gmx --version”, either there is no CUDA driver or no CUDA runtime detected. However, both are detected when I do which makes it pretty confusing. This is a screenshot:

 ![Screenshot from 2023-01-18 15-40-39](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/1/1d8292555c8d3e6f9261ba51076b2b810fd292d0.png)

Also, nvidia-smi outputs normally.  
Here is a link with the screenshots of the error and output of nvidia-smi as well since I can only include one embedded media: [Imgur: The magic of the Internet](https://imgur.com/a/gTqLuAl)  
Any help/guidance would be appreciated.

---

<div class="post-metadata">

**Author:** ![pszilard](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pszilard/32/21_2.png) [@pszilard](https://gromacs.bioexcel.eu/u/pszilard)\
**Post date:** [January 19, 2023, 4:01pm UTC](https://gromacs.bioexcel.eu/t/no-gpu-is-detected-despite-gmx-version-detecting-the-gpu/5596/2 "2023-01-19T16:01:38Z")

</div>

You are using CUDA version 12 which is not backward compatible with the driver installed which is 11.6 as your nvidia-smi output indicates. Either upgrade the GPU driver or build GROMACS with a CUDA 11.x version.

---

<div class="post-metadata">

**Author:** ![sergio1](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@sergio1](https://gromacs.bioexcel.eu/u/sergio1)\
**Post date:** [January 20, 2023, 12:42pm UTC](https://gromacs.bioexcel.eu/t/no-gpu-is-detected-despite-gmx-version-detecting-the-gpu/5596/3 "2023-01-20T12:42:38Z")

</div>

Thank you. This worked.
