Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

To build and execute code on the GPU A100 cluster, please use the appropriate login nodes as listed in Quickstart.login to

  • a GPU A100 login node, like bgnlogin.nhr.zib.de.
  • see also Quickstart

Code build

For code generation we recommend the software package NVIDIA hpcx which includes is a combination of compiler and access to powerful libraries, like e.g. MPI.

Codeblock
languagetext
titlePlain OpenMP for GPU
bgnlogin1 ~ $ module load nvhpc-hpcx/23.1
bgnlogin1 ~ $ module list
Currently Loaded Modulefiles: ... 4) hpcx   5) nvhpc-hpcx/23.1

...


bgnlogin1 ~ $ nvc -mp -target=gpu openmp_gpu.c -o openmp_gpu.bin


Codeblock
languagetext
titleMPI and OpenMP and MPIfor GPU
bgnlogin1 ~ $ module load nvhpc-hpcx/23.1
bgnlogin1 ~ $ module list
Currently Loaded Modulefiles: ... 4) hpcx   5) nvhpc-hpcx/23.1

...