aboutsummaryrefslogtreecommitdiff
path: root/Examples/batchScripts/batch_summit.sh
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 19:47:16 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-26 19:47:16 -0700
commit83d451a02b3fc493e3e48d992599e60319042860 (patch)
treead389f30c3b1956eb502e018499d1bcf3cefa748 /Examples/batchScripts/batch_summit.sh
parent619f6e12c6dc782b7465465525dca80eded1cb72 (diff)
downloadWarpX-83d451a02b3fc493e3e48d992599e60319042860.tar.gz
WarpX-83d451a02b3fc493e3e48d992599e60319042860.tar.zst
WarpX-83d451a02b3fc493e3e48d992599e60319042860.zip
make scripts more general and clean the doc
Diffstat (limited to 'Examples/batchScripts/batch_summit.sh')
-rw-r--r--Examples/batchScripts/batch_summit.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/batchScripts/batch_summit.sh b/Examples/batchScripts/batch_summit.sh
index a2679510f..002660b91 100644
--- a/Examples/batchScripts/batch_summit.sh
+++ b/Examples/batchScripts/batch_summit.sh
@@ -12,4 +12,5 @@ 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
+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