PULSE-code / slurm /gpu_array.sbatch.in
velvet-pine-22's picture
PULSE-code: benchmark code for the PULSE dataset (camera-ready release)
dffbc1f verified
Raw History Blame Contribute Delete
887 Bytes
#!/bin/bash
# Generated by scripts/run_table.py from slurm/gpu_array.sbatch.in.
# GPU jobs target partition ex03A800 only; the array throttle (%N) keeps the
# user's running+pending GPUs on that partition within the cap.
#SBATCH --job-name=@@JOB_NAME@@
#SBATCH --partition=ex03A800
#SBATCH --account=@@ACCOUNT@@
#SBATCH --gres=gpu:@@GPUS_PER_TASK@@
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=@@CPUS@@
#SBATCH --mem=@@MEM@@
#SBATCH --time=@@TIME@@
#SBATCH --array=0-@@LAST_INDEX@@%@@THROTTLE@@
@@SBATCH_EXTRA@@
#SBATCH --output=@@LOG_DIR@@/%x_%A_%a.out
#SBATCH --error=@@LOG_DIR@@/%x_%A_%a.out
set -euo pipefail
ulimit -n 51200
cd "@@REPO_DIR@@"
export PULSE_ROOT="@@PULSE_ROOT@@"
@@EXTRA_ENV@@
export PYTHONUNBUFFERED=1
CMD=$(sed -n "$((SLURM_ARRAY_TASK_ID + 1))p" "@@COMMANDS@@")
echo "[$(date -Is)] host $(hostname) task ${SLURM_ARRAY_TASK_ID}: ${CMD}"
eval "${CMD}"