From 3e8958cbb206f2832d6c8801d1d17dc497c7a68e Mon Sep 17 00:00:00 2001 From: Sintal <61sima1bif@hft-stuttgart.de> Date: Sun, 16 May 2021 20:19:05 +0000 Subject: [PATCH] Update testscript.sh --- testscript.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/testscript.sh b/testscript.sh index 14a4da4..1f8cb9d 100644 --- a/testscript.sh +++ b/testscript.sh @@ -4,12 +4,13 @@ #Load required module files #msub -I -V -l nodes=1:ppn=4,pmem=5000mb -l #walltime=0:02:00:00 +workingdir=~/testscript/ module load compiler/intel/19.0 module load mpi/openmpi/4.0 -mpicc -o helloworld helloworld.c -no-multibyte-chars -mpirun -n 1 ./helloworld +mpicc -o $(workingdir)helloworld $(workingdir)helloworld.c -no-multibyte-chars +mpirun -n 1 $(workingdir)helloworld echo "-------------------" -mpirun -n 2 ./helloworld +mpirun -n 2 $(workingdir)helloworld echo "------------------" -mpirun -n 4 ./helloworld +mpirun -n 4 $(workingdir)helloworld echo "--------------------" -- GitLab