diff options
Diffstat (limited to 'Examples/batchScripts/batch_summit.sh')
-rw-r--r-- | Examples/batchScripts/batch_summit.sh | 3 |
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 |