diff options
author | 2019-08-23 14:42:31 -0700 | |
---|---|---|
committer | 2019-08-23 14:42:31 -0700 | |
commit | 5f31c42a43f1396a636ff81cbfe2fabedf3f6e67 (patch) | |
tree | dd3033d1d3c1445a86b615157e040d4501d039a1 /Examples/batchScripts | |
parent | 84a9c25163825d4fba4bf52fe0e05c54705f1901 (diff) | |
download | WarpX-5f31c42a43f1396a636ff81cbfe2fabedf3f6e67.tar.gz WarpX-5f31c42a43f1396a636ff81cbfe2fabedf3f6e67.tar.zst WarpX-5f31c42a43f1396a636ff81cbfe2fabedf3f6e67.zip |
Doc: batch script and description on Summit and Cori KNL
Diffstat (limited to 'Examples/batchScripts')
-rw-r--r-- | Examples/batchScripts/batch_cori.sh | 22 | ||||
-rw-r--r-- | Examples/batchScripts/batch_summit.sh | 15 |
2 files changed, 37 insertions, 0 deletions
diff --git a/Examples/batchScripts/batch_cori.sh b/Examples/batchScripts/batch_cori.sh new file mode 100644 index 000000000..bfadc6e0a --- /dev/null +++ b/Examples/batchScripts/batch_cori.sh @@ -0,0 +1,22 @@ +#!/bin/bash -l + +#SBATCH -N 2 +#SBATCH -t 01:00:00 +#SBATCH -q regular +#SBATCH -C knl +#SBATCH -J <job name> +#SBATCH -A <allocation ID> +#SBATCH -e error.txt +#SBATCH -o output.txt + +export OMP_NUM_THREADS=8 +export OMP_PLACES=threads +export OMP_PROC_BIND=spread + +# Typically use OMP_NUM_THREADS=8 and 8 MPI ranks per node, +# without hyperthreading (HT=1) +srun --cpu_bind=cores -n 16 -c 32 <path/to/executable> <input file> +# 4 OpenMP threads, 16 MPI ranks per node, HT=1 +# srun --cpu_bind=cores -n 32 -c 16 <path/to/executable> <inputs file> +# 8 OpenMP threads, 16 MPI ranks per node, HT=2 +# srun --cpu_bind=cores -n 32 -c 16 <path/to/executable> <inputs file> diff --git a/Examples/batchScripts/batch_summit.sh b/Examples/batchScripts/batch_summit.sh new file mode 100644 index 000000000..a2679510f --- /dev/null +++ b/Examples/batchScripts/batch_summit.sh @@ -0,0 +1,15 @@ +#!/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} + +jsrun -n 2 -a 6 -g 6 -c 6 --bind=packed:${omp} <path/to/executable> <input file> > output.txt |