testscript.sh 424 Bytes
Newer Older
1
2
3
#!/bin/bash
#MSUB -l nodes=1:ppn=4
#MSUB -l walltime=00:10:00
Sintal's avatar
Sintal committed
4
#Load required module files
5
#msub -I -V -l nodes=1:ppn=4,pmem=5000mb -l
Sintal's avatar
Sintal committed
6
#walltime=0:02:00:00
7
8
9
10
11
12
13
14
15
module load compiler/intel/19.0
module load mpi/openmpi/4.0
mpicc -o helloworld helloworld.c -no-multibyte-chars
mpirun -n 1 ./helloworld
echo "-------------------"
mpirun -n 2 ./helloworld
echo "------------------"
mpirun -n 4 ./helloworld
echo "--------------------"