aboutsummaryrefslogtreecommitdiff
path: root/Examples/batchScripts/batch_summit.sh
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2019-08-26 21:55:53 -0700
committerGravatar GitHub <noreply@github.com> 2019-08-26 21:55:53 -0700
commit17eefa31d683117b365c7c272f2e3631c64c71a3 (patch)
treead389f30c3b1956eb502e018499d1bcf3cefa748 /Examples/batchScripts/batch_summit.sh
parent3d44362029fb39476f9542a10af9e0fc5eb1ef9b (diff)
parent83d451a02b3fc493e3e48d992599e60319042860 (diff)
downloadWarpX-17eefa31d683117b365c7c272f2e3631c64c71a3.tar.gz
WarpX-17eefa31d683117b365c7c272f2e3631c64c71a3.tar.zst
WarpX-17eefa31d683117b365c7c272f2e3631c64c71a3.zip
Merge pull request #291 from ECP-WarpX/doc_platforms
Docs: System Submission & Helper Scripts
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