...
For examples for code execution, please visit Slurm partition CPU CLX.
Code compilation
Intel compiler
Codeblock |
---|
title | Serial icc |
---|
collapse | true |
---|
|
module load intel
icc -o hello.bin hello.c
ifort -o hello.bin hello.f90
icpc -o hello.bin hello.cpp |
Codeblock |
---|
title | OpenMP icc |
---|
collapse | true |
---|
|
module load intel
icc -qopenmp -o hello.bin hello.c
ifort -qopenmp -o hello.bin hello.f90
icpc -qopenmp -o hello.bin hello.cpp |
Gnu compiler
Codeblock |
---|
title | Serial gcc |
---|
collapse | true |
---|
|
module load gcc
gcc -o hello.bin hello.c
gfortran -o hello.bin hello.f90
g++ -o hello.bin hello.cpp |
...