...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
module load gcc gcc -fopenmp -o hello.bin hello.c gfortran -fopenmp -o hello.bin hello.f90 g++ -fopenmp -o hello.bin hello.cpp |
Hybrid Code with MPI and OpenMP
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
module load intel
module load impi
mpiicc -qopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.c
mpiifort -qopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.f90
mpiicpc -qopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.cpp |
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
module load gcc
module load impi
mpigcc -fopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.c
mpif90 -fopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.f90
mpigxx -fopenmp -Wl,-rpath,$LD_RUN_PATH -o hello.bin hello.cpp |
MPI, communication libraries, OpenMP
...