For those who wanna build on Windows with Visual Studio 2026

GROMACS version: 2026.2
GROMACS modification: No

If you want to build GROMACS 2026 on Windows with CUDA using Visual Studio 2026, please:

  • Upgrade CUDA toolkit to 13.2 or higher.
  • add this line set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler=/Zc:preprocessor") to the camke file cmake/gmxManageCuda.cmake
1 Like

Thanks for sharing the recipe!

The CMake fix is upstreamed into the upcoming 2026.3 :)