Commit 389b727e authored by Kurs Kurs's avatar Kurs Kurs

Add the submission scripts

parent 44d0b09f
#!/bin/bash
NODES="1 2 4 8"
OMP_THREADS="1 2 4 10 20"
THREADS_PER_NODE=20
for n in $NODES
do
for t in $OMP_THREADS
do
TASKS_PER_NODE=$(( $THREADS_PER_NODE / $t ))
CPUS_PER_TASK=$t
echo $n $t $TASKS_PER_NODE
sbatch -N $n \
--tasks-per-node=$TASKS_PER_NODE \
--cpus-per-task=$CPUS_PER_TASK \
./submit.sh
done
done
#!/bin/bash
#SBATCH -t 00:05:00
#SBATCH -J diffusion
#SBATCH -o diffusion_mpi_%j.out
#SBATCH -e diffusion_mpi_%j.err
#SBATCH -A computehpc
cat $0
module purge
module load foss/2019b
OUTPUT_FILE="results.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
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