aboutsummaryrefslogtreecommitdiff
path: root/Examples/batchScripts/batch_summit.sh
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-08-27 13:50:26 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-08-27 13:50:26 -0700
commit0a5ae49781b43864d60fe8f6e91f6c1831930708 (patch)
treee81b21329d095d99e4016b0685eac91092a79ee1 /Examples/batchScripts/batch_summit.sh
parent7a5d2666a6a266f94e4acaa5710ffb0e453d6600 (diff)
parent17eefa31d683117b365c7c272f2e3631c64c71a3 (diff)
downloadWarpX-0a5ae49781b43864d60fe8f6e91f6c1831930708.tar.gz
WarpX-0a5ae49781b43864d60fe8f6e91f6c1831930708.tar.zst
WarpX-0a5ae49781b43864d60fe8f6e91f6c1831930708.zip
Merge branch 'dev' into RZgeometry
Diffstat (limited to 'Examples/batchScripts/batch_summit.sh')
-rw-r--r--Examples/batchScripts/batch_summit.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/batchScripts/batch_summit.sh b/Examples/batchScripts/batch_summit.sh
new file mode 100644
index 000000000..002660b91
--- /dev/null
+++ b/Examples/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