Inhalt |
---|
Code
...
compilation
Intel compiler
Codeblock | ||||
---|---|---|---|---|
| ||||
module load intel icc -o hello.bin hello.c ifort -o hello.bin hello.f90 icpc -o hello.bin hello.cpp |
...
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 |
Code execution
...
Codeblock | ||||
---|---|---|---|---|
| ||||
#SBATCH --nodes=1 ./hello.bin |
Codeblock | ||||
---|---|---|---|---|
| ||||
#SBATCH --nodes=1
#SBATCH --partition=standard96:test
export OMP_PROC_BIND=spread
export OMP_NUM_THREADS=96
./hello.bin |
Codeblock | ||||
---|---|---|---|---|
| ||||
#SBATCH --nodes=1 #SBATCH --partition=standard96:test export OMP_PROC_BIND=spread export OMP_NUM_THREADS=48 ./hello.bin |
Codeblock | ||||
---|---|---|---|---|
| ||||
#SBATCH --nodes=1 #SBATCH --partition=standard96:test export OMP_PROC_BIND=spread export OMP_NUM_THREADS=192 ./hello.bin |
...