...
PrgEnv-cray | PrgEnv-aocc | PrgEnv-gnu | |||
---|---|---|---|---|---|
Language | Command | Language | Command | Language | Command |
C | cc -fopenmp hello_omp.c | C | cc -qopenmp fopenmp hello_omp.c | C | cc -fopenmp hello_omp.c |
C++ | CC -fopenmp hello_omp.cpp | C++ | CC -qopenmp fopenmp hello_omp.cpp | C++ | CC -fopenmp hello_omp.cpp |
Fortran | ftn -h omp hello_omp.f90 | Fortran | ftn -qopenmp fopenmp hello_omp.f90 | Fortran | ftn -fopenmp hello_omp.f90 |
...
OpenACC is only supported by the Cray Fortran compiler and GCC for C and C++.
Compiling HIP code or HIP_MPI code
Code Block |
---|
$ module load rocm/<VERSION> craype-accel-amd-gfx90a $ hipcc foo.cu for MPI enabled codes $ module load rocm/<VERSION> craype-accel-amd-gfx90a $ export CPATH=${CPATH}:${CRAY_MPICH_DIR}/include $ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CRAY_MPICH_DIR}/lib $ hipcc -L${CRAY_MPICH_DIR}/lib -lmpi foo.cu * foo.cu is a ported file from cuda code |
Compiler manual pages
Executing man cc
, man CC
or man ftn
within will open the manual pages of the wrapper. Manual pages for every compiler are also available.