aboutsummaryrefslogtreecommitdiff
path: root/Tools/BatchScripts
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/BatchScripts')
-rw-r--r--Tools/BatchScripts/batch_cori.sh3
-rw-r--r--Tools/BatchScripts/batch_cori_haswell.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/Tools/BatchScripts/batch_cori.sh b/Tools/BatchScripts/batch_cori.sh
index ee2658451..a827ad779 100644
--- a/Tools/BatchScripts/batch_cori.sh
+++ b/Tools/BatchScripts/batch_cori.sh
@@ -37,4 +37,7 @@ export WARPX_NTHREADS_PER_NODE=$(( ${WARPX_HYPERTHREAD_LEVEL} * ${CORI_NCORES_PE
export OMP_NUM_THREADS=$(( ${WARPX_NTHREADS_PER_NODE} / ${WARPX_NMPI_PER_NODE} ))
export WARPX_THREAD_COUNT=$(( ${CORI_NHYPERTHREADS_MAX} / ${WARPX_NMPI_PER_NODE} ))
+# for async_io support: (optional)
+export MPICH_MAX_THREAD_SAFETY=multiple
+
srun --cpu_bind=cores -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) -c ${WARPX_THREAD_COUNT} <path/to/executable> <input file>
diff --git a/Tools/BatchScripts/batch_cori_haswell.sh b/Tools/BatchScripts/batch_cori_haswell.sh
index a1a21defc..0f3c66b49 100644
--- a/Tools/BatchScripts/batch_cori_haswell.sh
+++ b/Tools/BatchScripts/batch_cori_haswell.sh
@@ -31,6 +31,9 @@ export OMP_PROC_BIND=spread
export OMP_PLACES=threads
export OMP_NUM_THREADS=16
+# for async_io support: (optional)
+export MPICH_MAX_THREAD_SAFETY=multiple
+
EXE="<path/to/executable>"
srun --cpu_bind=cores -n $(( ${SLURM_JOB_NUM_NODES} * ${WARPX_NMPI_PER_NODE} )) ${EXE} <input file>