aboutsummaryrefslogtreecommitdiff
path: root/Examples/batchScripts
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/batchScripts')
-rw-r--r--Examples/batchScripts/batch_cori.sh22
-rw-r--r--Examples/batchScripts/batch_summit.sh15
2 files changed, 37 insertions, 0 deletions
diff --git a/Examples/batchScripts/batch_cori.sh b/Examples/batchScripts/batch_cori.sh
new file mode 100644
index 000000000..bfadc6e0a
--- /dev/null
+++ b/Examples/batchScripts/batch_cori.sh
@@ -0,0 +1,22 @@
+#!/bin/bash -l
+
+#SBATCH -N 2
+#SBATCH -t 01:00:00
+#SBATCH -q regular
+#SBATCH -C knl
+#SBATCH -J <job name>
+#SBATCH -A <allocation ID>
+#SBATCH -e error.txt
+#SBATCH -o output.txt
+
+export OMP_NUM_THREADS=8
+export OMP_PLACES=threads
+export OMP_PROC_BIND=spread
+
+# Typically use OMP_NUM_THREADS=8 and 8 MPI ranks per node,
+# without hyperthreading (HT=1)
+srun --cpu_bind=cores -n 16 -c 32 <path/to/executable> <input file>
+# 4 OpenMP threads, 16 MPI ranks per node, HT=1
+# srun --cpu_bind=cores -n 32 -c 16 <path/to/executable> <inputs file>
+# 8 OpenMP threads, 16 MPI ranks per node, HT=2
+# srun --cpu_bind=cores -n 32 -c 16 <path/to/executable> <inputs file>
diff --git a/Examples/batchScripts/batch_summit.sh b/Examples/batchScripts/batch_summit.sh
new file mode 100644
index 000000000..a2679510f
--- /dev/null
+++ b/Examples/batchScripts/batch_summit.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#BSUB -P <allocation ID>
+#BSUB -W 00:10
+#BSUB -nnodes 2
+#BSUB -J WarpX
+#BSUB -o WarpXo.%J
+#BSUB -e WarpXe.%J
+
+module load pgi
+module load cuda
+
+omp=1
+export OMP_NUM_THREADS=${omp}
+
+jsrun -n 2 -a 6 -g 6 -c 6 --bind=packed:${omp} <path/to/executable> <input file> > output.txt