Skip to content

Commit c6a94d4

Browse files
Including DoD Nautilus in the list of computers for MFC (#523)
Co-authored-by: Spencer Bryngelson <shb@gatech.edu>
1 parent 8c7f281 commit c6a94d4

File tree

3 files changed

+62
-2
lines changed

3 files changed

+62
-2
lines changed

toolchain/bootstrap/modules.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if [ -v $u_c ]; then
2323
log "$C""ACCESS$W: Bridges2 (b) | Expanse (e) | Delta (d)"
2424
log "$Y""Gatech$W: Phoenix (p)"
2525
log "$R""Caltech$W: Richardson (r)"
26-
log "$B""DoD$W: Carpenter (c)"
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): "
26+
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): "
2828
read u_c
2929
log
3030
fi

toolchain/modules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ c DoD Carpenter
6464
c-all python
6565
c-cpu gcc/12.2.0 cmake/3.28.1-gcc-12.2.0 openmpi/4.1.6
6666
c-gpu nvhpc/23.7 cuda/12.2
67+
68+
n DoD Nautilus
69+
n-all slurm
70+
n-cpu penguin/openmpi/4.1.5/gcc-8.5.0
71+
n-gpu penguin/openmpi/4.1.5/nvhpc-22.3 nvidia/nvhpc/22.3 cuda/cuda-11.6
72+
n-gpu CC=nvc CXX=nvc++ FC=nvfortran

toolchain/templates/nautilus.mako

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 --qos=${partition}
13+
% endif
14+
% if account:
15+
#SBATCH --account="${account}"
16+
% endif
17+
% if gpu:
18+
#SBATCH --gpu-bind=verbose,closest
19+
#SBATCH --gres=gpu:v100-16:${tasks_per_node}
20+
% endif
21+
#SBATCH --output="${name}.out"
22+
#SBATCH --error="${name}.err"
23+
#SBATCH --export=ALL
24+
% if email:
25+
#SBATCH --mail-user=${email}
26+
#SBATCH --mail-type="BEGIN, END, FAIL"
27+
% endif
28+
% endif
29+
30+
${helpers.template_prologue()}
31+
32+
ok ":) Loading modules:\n"
33+
cd "${MFC_ROOTDIR}"
34+
. ./mfc.sh load -c n -m ${'g' if gpu else 'c'}
35+
cd - > /dev/null
36+
echo
37+
38+
% for target in targets:
39+
${helpers.run_prologue(target)}
40+
41+
% if not mpi:
42+
(set -x; ${profiler} "${target.get_install_binpath(case)}")
43+
% else:
44+
(set -x; ${profiler} \
45+
mpirun -np ${nodes*tasks_per_node} \
46+
"${target.get_install_binpath(case)}")
47+
% endif
48+
49+
${helpers.run_epilogue(target)}
50+
51+
echo
52+
% endfor
53+
54+
${helpers.template_epilogue()}

0 commit comments

Comments
 (0)