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