File size: 825 Bytes
dffbc1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Generated by scripts/run_table.py from slurm/cpu_array.sbatch.in (CPU-only runs:
# smoke tests, data checks, CPU analyses).  No GPU is requested.
#SBATCH --job-name=@@JOB_NAME@@
#SBATCH --partition=@@PARTITION@@
#SBATCH --account=@@ACCOUNT@@
#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
export CUDA_VISIBLE_DEVICES=""
CMD=$(sed -n "$((SLURM_ARRAY_TASK_ID + 1))p" "@@COMMANDS@@")
echo "[$(date -Is)] host $(hostname) task ${SLURM_ARRAY_TASK_ID}: ${CMD}"
eval "${CMD}"