...
For examples for code execution, please visit Slurm partition CPU CLX.
Code compilation
Intel oneAPI compiler
Codeblock |
---|
title | Serial icccode execution |
---|
collapse | true |
---|
|
module load intel
iccicx -o hello.bin hello.c
ifortifx -o hello.bin hello.f90
icpcicpx -o hello.bin hello.cpp |
Codeblock |
---|
title | OpenMP iccthreaded code execution |
---|
collapse | true |
---|
|
module load intel
iccicx -qopenmpfopenmp -o hello.bin hello.c
ifortifx -qopenmpfopenmp -o hello.bin hello.f90
icpcicpx -qopenmpfopenmp -o hello.bin hello.cpp |
...
GNU compiler
Codeblock |
---|
title | Serial gcccode execution |
---|
collapse | true |
---|
|
module load gcc
gcc -o hello.bin hello.c
gfortran -o hello.bin hello.f90
g++ -o hello.bin hello.cpp |
Codeblock |
---|
title | OpenMP gccthreaded code execution |
---|
collapse | true |
---|
|
module load gcc
gcc -fopenmp -o hello.bin hello.c
gfortran -fopenmp -o hello.bin hello.f90
g++ -fopenmp -o hello.bin hello.cpp |
...