From 5455e58e9639e93b372b954a0b5f44aa121052ce Mon Sep 17 00:00:00 2001 From: mathias77515 Date: Wed, 11 Sep 2024 12:08:01 +0200 Subject: [PATCH] add run.sh --- src/run.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/run.sh diff --git a/src/run.sh b/src/run.sh new file mode 100644 index 0000000..358d33e --- /dev/null +++ b/src/run.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +#SBATCH --job-name=FMM + +# we ask for n MPI tasks with N cores each on c nodes + +#SBATCH --partition=htc +#SBATCH --nodes=1 # c +#SBATCH --ntasks-per-node=1 # n +#SBATCH --cpus-per-task=4 # N +#SBATCH --mem=60G +#SBATCH --time=3-00:00:00 +#SBATCH --output=mulitple_jobs_%j.log +#SBATCH --array=1-500 + +export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK} + +module load mpich + +mpirun -np $SLURM_NTASKS python src/run_fmm.py