forked from stanfordhpccenter/HTR-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yellowstone.slurm
45 lines (42 loc) · 1.05 KB
/
yellowstone.slurm
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash -eu
#SBATCH -J prometeo
GPU_OPTS=
if [[ "$QUEUE" == "compute" ]]; then
USE_CUDA=0
CORES_PER_NODE=16
NUMA_PER_RANK=2
RAM_PER_NODE=25000
# 32GB RAM per node
# 2 NUMA domains per node
# 8 cores per NUMA domain
# 2-way SMT per core
elif [[ "$QUEUE" == "largemem" ]]; then
USE_CUDA=0
CORES_PER_NODE=24
NUMA_PER_RANK=2
RAM_PER_NODE=220000
# 256GB RAM per node
# 2 NUMA domains per node
# 12 cores per NUMA domain
# 2-way SMT per core
elif [[ "$QUEUE" == "gpu" ]]; then
USE_CUDA=1
CORES_PER_NODE=24
NUMA_PER_RANK=2
RAM_PER_NODE=220000
GPUS_PER_NODE=1
FB_PER_GPU=4000
# 256GB RAM per node
# 2 NUMA domains per node
# 12 cores per NUMA domain
# 2-way SMT per core
# 1 Kepler M2050 GPUs per node
# 4GB FB per GPU
else
echo "Unrecognized queue $QUEUE" >&2
exit 1
fi
source "$HTR_DIR"/jobscripts/jobscript_shared.sh
srun --mpi=pmix -n "$NUM_RANKS" --ntasks-per-node="$RANKS_PER_NODE" \
--cpus-per-task="$CORES_PER_RANK" --export=ALL \
$COMMAND