Skip to content
Snippets Groups Projects
Commit eaa2fc32 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Merge branch 'gupa977e--tu-dresden.de-preview-patch-40226' into 'preview'

How to check if OpenMPI has support for CUDA

See merge request !796
parents 38167fc2 39446ebd
No related branches found
No related tags found
2 merge requests!808Automated merge from preview to main,!796How to check if OpenMPI has support for CUDA
...@@ -200,7 +200,15 @@ detail in [nvcc documentation](https://docs.nvidia.com/cuda/cuda-compiler-driver ...@@ -200,7 +200,15 @@ detail in [nvcc documentation](https://docs.nvidia.com/cuda/cuda-compiler-driver
This compiler is available via several `CUDA` packages, a default version can be loaded via This compiler is available via several `CUDA` packages, a default version can be loaded via
`module load CUDA`. Additionally, the `NVHPC` modules provide CUDA tools as well. `module load CUDA`. Additionally, the `NVHPC` modules provide CUDA tools as well.
#### Usage of the CUDA compiler For using CUDA with OpenMPI at multiple nodes, the OpenMPI module loaded shall have be compiled with
CUDA support. If you aren't sure if the module you are using has support for it you can check it as
following:
```console
ompi_info --parsable --all | grep mpi_built_with_cuda_support:value | awk -F":" '{print "OpenMPI supports CUDA:",$7}'
```
#### Usage of the CUDA Compiler
The simple invocation `nvcc <code.cu>` will compile a valid CUDA program. `nvcc` differentiates The simple invocation `nvcc <code.cu>` will compile a valid CUDA program. `nvcc` differentiates
between the device and the host code, which will be compiled in separate phases. Therefore, compiler between the device and the host code, which will be compiled in separate phases. Therefore, compiler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment