Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PrgEnv-crayPrgEnv-aoccPrgEnv-gnu
LanguageCommandLanguageCommandLanguageCommand
Ccc -fopenmp hello_omp.cCcc -qopenmp fopenmp hello_omp.cCcc -fopenmp hello_omp.c
C++CC -fopenmp hello_omp.cppC++CC -qopenmp fopenmp hello_omp.cppC++CC -fopenmp hello_omp.cpp
Fortranftn -h omp hello_omp.f90Fortranftn -qopenmp fopenmp hello_omp.f90Fortranftn -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 ccman CC or man ftn within will open the manual pages of the wrapper. Manual pages for every compiler are also available.