Skip to content

Commit 0f21835

Browse files
authored
DeltaAI stuff (#754)
1 parent ca36ffb commit 0f21835

File tree

3 files changed

+63
-2
lines changed

3 files changed

+63
-2
lines changed

toolchain/bootstrap/modules.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ done
2020
if [ -v $u_c ]; then
2121
log "Select a system:"
2222
log "$G""ORNL$W: Ascent (a) | Frontier (f) | Summit (s) | Wombat (w)"
23-
log "$C""ACCESS$W: Bridges2 (b) | Expanse (e) | Delta (d)"
23+
log "$C""ACCESS$W: Bridges2 (b) | Expanse (e) | Delta (d) | DeltaAI (dai)"
2424
log "$Y""Gatech$W: Phoenix (p)"
2525
log "$R""Caltech$W: Richardson (r)"
2626
log "$B""DoD$W: Carpenter (c) | Nautilus (n)"
27-
log_n "($G""a$W/$G""f$W/$G""s$W/$G""w$W/$C""b$W/$C""e$CR/$C""d$CR/$Y""p$CR/$R""r$CR/$B""c$CR/$B""n$CR): "
27+
log_n "($G""a$W/$G""f$W/$G""s$W/$G""w$W/$C""b$W/$C""e$CR/$C""d/$C""dai$CR/$Y""p$CR/$R""r$CR/$B""c$CR/$B""n$CR): "
2828
read u_c
2929
log
3030
fi

toolchain/modules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ d-gpu nvhpc/24.1 cuda/12.3.0 openmpi/4.1.5+cuda cmake
5959
d-gpu CC=nvc CXX=nvc++ FC=nvfortran
6060
d-gpu MFC_CUDA_CC=80,86
6161

62+
dai NCSA DeltaAI
63+
dai-all python cmake nvhpc-openmpi3/24.3 cuda
64+
dai-all CC=nvc CXX=nvc++ FC=nvfortran
65+
dai-gpu MFC_CUDA_CC=89,90
66+
6267
c DoD Carpenter
6368
c-all python/3.12.1
6469
c-cpu compiler-rt/2024.2.0 ifort/2024.2.0 icc/2023.1.0 mpi/latest cmake/3.28.1-intel-2023.0.0

toolchain/templates/deltaai.mako

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env bash
2+
3+
<%namespace name="helpers" file="helpers.mako"/>
4+
5+
% if engine == 'batch':
6+
#SBATCH --nodes=${nodes}
7+
#SBATCH --ntasks-per-node=${tasks_per_node}
8+
#SBATCH --cpus-per-task=1
9+
#SBATCH --job-name="${name}"
10+
#SBATCH --time=${walltime}
11+
% if partition:
12+
#SBATCH --partition=${partition}
13+
% endif
14+
% if account:
15+
#SBATCH --account="${account}"
16+
% endif
17+
% if gpu:
18+
#SBATCH --gpus-per-node=${tasks_per_node}
19+
#SBATCH --mem=208G
20+
#SBATCH --gpu-bind=closest
21+
% endif
22+
#SBATCH --output="${name}.out"
23+
#SBATCH --error="${name}.err"
24+
#SBATCH --export=ALL
25+
% if email:
26+
#SBATCH --mail-user=${email}
27+
#SBATCH --mail-type="BEGIN, END, FAIL"
28+
% endif
29+
% endif
30+
31+
${helpers.template_prologue()}
32+
33+
ok ":) Loading modules:\n"
34+
cd "${MFC_ROOT_DIR}"
35+
. ./mfc.sh load -c dai -m ${'g' if gpu else 'c'}
36+
cd - > /dev/null
37+
echo
38+
39+
40+
% for target in targets:
41+
${helpers.run_prologue(target)}
42+
43+
% if not mpi:
44+
(set -x; ${profiler} "${target.get_install_binpath(case)}")
45+
% else:
46+
(set -x; ${profiler} \
47+
mpirun -np ${nodes*tasks_per_node} \
48+
"${target.get_install_binpath(case)}")
49+
% endif
50+
51+
${helpers.run_epilogue(target)}
52+
53+
echo
54+
% endfor
55+
56+
${helpers.template_epilogue()}

0 commit comments

Comments
 (0)