Commit 591e78fc authored by Kurs Kurs's avatar Kurs Kurs

Update submission scripts

parent 30f27a7d
......@@ -3,6 +3,7 @@
NODES="1 2 4 8"
OMP_THREADS="1 2 4 10 20"
THREADS_PER_NODE=20
PROBLEM=$1
for n in $NODES
do
......@@ -14,6 +15,6 @@ do
sbatch -N $n \
--tasks-per-node=$TASKS_PER_NODE \
--cpus-per-task=$CPUS_PER_TASK \
./submit.sh
./submit.sh $PROBLEM
done
done
#!/bin/bash
#SBATCH -t 00:05:00
#SBATCH -t 00:10:00
#SBATCH -J diffusion
#SBATCH -o diffusion_mpi_%j.out
#SBATCH -e diffusion_mpi_%j.err
......@@ -9,10 +9,11 @@ cat $0
module purge
module load foss/2019b
OUTPUT_FILE="results.csv"
PROBLEM=$1
OUTPUT_FILE=$PROBLEM".csv"
# OpenMP setup
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export OMP_PROC_BIND=TRUE
mpiexec --map-by ppr:$SLURM_NTASKS_PER_NODE:node:PE=$SLURM_CPUS_PER_TASK ./diffusion | tee -a $OUTPUT_FILE
mpiexec --map-by ppr:$SLURM_NTASKS_PER_NODE:node:PE=$SLURM_CPUS_PER_TASK ./diffusion -f=$PROBLEM | tee -a $OUTPUT_FILE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment