Repository navigation
Compiler and CUDA versions
HORSES3D-GPU is compiled with the nvfortran compiler of the NVIDIA HPC SDK. Other compilers (GNU Fortran, Cray) are not supported for the OpenACC build. This page lists the versions that are known to work and how to build for your own GPU.
| NVIDIA HPC SDK | CUDA | Where | Notes |
|---|---|---|---|
| 23.7 | 12.2 | Magerit (A100) | See Magerit-GPU |
| 24.11 | 11.8 | MareNostrum 5 (H100) | Reference version; used for the results of the HORSES3D-GPU paper. See Marenostrum-5-GPU |
| 24.11 | 12.6 | Nibbler (H200) | See Nibbler-GPU |
| 26.3 | 12.0 – 13.0 | Local workstations / laptops | Tested locally. The changes made to the code since January 2026 have not been checked with this version |
Combining a very recent nvfortran with a very old CUDA (or the other way round) gives errors that have nothing to do with HORSES3D. For example, CUDA 10 with nvfortran 26 does not work. Use versions released around the same time.
Safe pairs:
nvfortran |
CUDA |
|---|---|
| 24.11 | 11.8 – 12.6 U2 |
| 25.9 | 12.9 U1 – 13.0 |
| 25.11 | 12.9 U1 – 13.0 U2 |
| 26.3 | 12.9 U1 – 13.1 U1 |
| 26.11 | 12.9 U1 – 13.4 U1 |
The versions in between do not change much; these are the releases with significant changes.
Recommendation for new users:
-
nvfortran24.11 with CUDA 12.x. This is the version used on MareNostrum 5 and Nibbler. -
nvfortran26.x with CUDA 13.x. - Avoid
nvfortran25.x: nobody in the team uses it.
The nvfortran flags in Solver/Makefile.in build the code for the following compute capabilities:
-gpu=cc70,cc75,cc80,cc89,cc90,...
| Compute capability | Examples |
|---|---|
cc70 |
V100 |
cc75 |
Turing (RTX 20 series, T4) |
cc80 |
A100 |
cc89 |
Ada Lovelace (RTX 40 series, L40) |
cc90 |
H100, H200 |
Data-center GPUs (A100, H100, H200) work out of the box. If your GPU has a compute capability that is not in this list, add it to the -gpu= option of NVFORTRAN_RELEASE_FLAGS (and NVFORTRAN_DEBUG_FLAGS if you use the debug build) in Solver/Makefile.in, then run ./configure and recompile. A common case is the desktop and laptop GPUs of the RTX 30 series, which are cc86. For example:
-gpu=cc70,cc75,cc80,cc86,cc89,cc90,gvmode,ptxinfo,maxregcount:128
You can check the compute capability of your GPU with:
nvidia-smi --query-gpu=name,compute_cap --format=csvThe code runs in double precision on all GPUs, including consumer ones; it has been run, for example, on a GeForce RTX 3060 Laptop GPU. Consumer GPUs have a much lower double-precision throughput than data-center GPUs, so the runs are noticeably slower. Use them for development and testing, not for performance measurements.