diff options
author | 2021-08-30 16:47:16 -0700 | |
---|---|---|
committer | 2021-08-30 16:47:16 -0700 | |
commit | 35a66bcd8fde93507d7c1538d61893fbec016b31 (patch) | |
tree | 07856e98502c8eaf9774451736c9d071dd3e806e /Tools/BatchScripts/batch_perlmutter.sh | |
parent | e130e57efcee4fb08cae9a5888c67c83db63abb4 (diff) | |
download | WarpX-35a66bcd8fde93507d7c1538d61893fbec016b31.tar.gz WarpX-35a66bcd8fde93507d7c1538d61893fbec016b31.tar.zst WarpX-35a66bcd8fde93507d7c1538d61893fbec016b31.zip |
Docs: Perlmutter (#2229)
* Docs: Perlmutter
Start a documentation page for Perlmutter.
* Cleaning
- better links to docs
- clean submission script
* Perlmutter: Add I/O
Diffstat (limited to '')
-rw-r--r-- | Tools/BatchScripts/batch_perlmutter.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Tools/BatchScripts/batch_perlmutter.sh b/Tools/BatchScripts/batch_perlmutter.sh new file mode 100644 index 000000000..e3c47419e --- /dev/null +++ b/Tools/BatchScripts/batch_perlmutter.sh @@ -0,0 +1,45 @@ +#!/bin/bash -l + +# Copyright 2021 Axel Huebl, Kevin Gott +# +# This file is part of WarpX. +# +# License: BSD-3-Clause-LBNL + +#SBATCH -t 01:00:00 +#SBATCH -N 4 +#SBATCH -J WarpX +#SBATCH -A <proj> +#SBATCH -C gpu +#SBATCH -c 32 +#SBATCH --ntasks-per-node=4 +#SBATCH --gpus-per-task=1 +#SBATCH --gpu-bind=single:1 +#SBATCH -o WarpX.o%j +#SBATCH -e WarpX.e%j + +# ============ +# -N = nodes +# -n = tasks (MPI ranks, usually = G) +# -G = GPUs (full Perlmutter node, 4) +# -c = CPU per task (128 total threads on CPU, 32 per GPU) +# +# --ntasks-per-node= number of tasks (MPI ranks) per node (full node, 4) +# --gpus-per-task= number of GPUs per task (MPI rank) (full node, 4) +# --gpus-per-node= number of GPUs per node (full node, 4) +# +# --gpu-bind=single:1 sets only one GPU to be visible to each MPI rank +# (quiets AMReX init warnings) +# +# Recommend using --ntasks-per-node=4, --gpus-per-task=1 and --gpu-bind=single:1, +# as they are fixed values and allow for easy scaling with less adjustments. +# +# ============ + +EXE=./warpx +#EXE=../WarpX/build/bin/warpx.3d.MPI.CUDA.DP.OPMD.QED +#EXE=./main3d.gnu.TPROF.MPI.CUDA.ex +INPUTS=inputs_small + +srun ${EXE} ${INPUTS} \ + > output.txt |