aboutsummaryrefslogtreecommitdiff
path: root/Tools/batchScripts/batch_summit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/batchScripts/batch_summit.sh')
-rw-r--r--Tools/batchScripts/batch_summit.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tools/batchScripts/batch_summit.sh b/Tools/batchScripts/batch_summit.sh
new file mode 100644
index 000000000..002660b91
--- /dev/null
+++ b/Tools/batchScripts/batch_summit.sh
@@ -0,0 +1,16 @@
+#!/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}
+
+num_nodes=$(( $(printf '%s\n' ${LSB_HOSTS} | sort -u | wc -l) - 1 ))
+jsrun -n ${num_nodes} -a 6 -g 6 -c 6 --bind=packed:${omp} <path/to/executable> <input file> > output.txt