File tree Expand file tree Collapse file tree 3 files changed +57
-5
lines changed Expand file tree Collapse file tree 3 files changed +57
-5
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ if [ -v $u_c ]; then
2424 log " $Y " " Gatech$W : Phoenix (p)"
2525 log " $R " " Caltech$W : Richardson (r)"
2626 log " $BR " " Brown$W : Oscar (o)"
27- log " $B " " DoD$W : Carpenter ( c) | Nautilus (n)"
28- 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 /$BR " " o" $CR " ): "
27+ log " $B " " DoD$W : Carpenter Cray (cc) | Carpenter GNU ( c) | Nautilus (n)"
28+ 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 " " cc $CR / $B " " c$CR /$B " " n$CR /$BR " " o" $CR " ): "
2929 read u_c
3030 log
3131fi
6868log " Loading modules (& env variables) for $M$COMPUTER$CR on $M$CG$CR " ' s:'
6969
7070# Reset modules to default system configuration (unless Carpenter)
71- if [ " $u_c " != ' c' ]; then
71+ if [ " $u_c " ' != ' ' cc ' ] && [ " $u_c " ' != ' ' c' ]; then
7272 module reset > /dev/null 2>&1
7373 code=" $? "
7474
@@ -97,7 +97,7 @@ if [ $(echo "$VARIABLES" | grep = | wc -c) -gt 0 ]; then
9797fi
9898
9999# Don't check for Cray paths on Carpenter, otherwise do check if they exist
100- if [ ! -z ${CRAY_LD_LIBRARY_PATH+x} ] && [ " $u_c " != ' c' ]; then
100+ if [ ! -z ${CRAY_LD_LIBRARY_PATH+x} ] && [ " $u_c " ' != ' ' c' ]; then
101101 ok " Found $M \$ CRAY_LD_LIBRARY_PATH$CR . Prepending to $M \$ LD_LIBRARY_PATH$CR ."
102102 export LD_LIBRARY_PATH=" $CRAY_LD_LIBRARY_PATH :$LD_LIBRARY_PATH "
103103fi
Original file line number Diff line number Diff line change @@ -70,11 +70,15 @@ dai-all python cmake nvhpc-openmpi3/24.3 cuda
7070dai-all CC=nvc CXX=nvc++ FC=nvfortran
7171dai-gpu MFC_CUDA_CC=89,90
7272
73- c DoD Carpenter
73+ c DoD Carpenter (GNU)
7474c-all python/3.12.1
7575c-cpu compiler-rt/2024.2.0 ifort/2024.2.0 icc/2023.1.0 mpi/latest cmake/3.28.1-intel-2023.0.0
7676c-cpu CC=gcc CXX=g++ FC=gfortran
7777
78+ cc DoD Carpenter (Cray)
79+ cc-all cray-python/3.11.7 craype-x86-rome
80+ cc-cpu PrgEnv-cray/8.5.0 cray-fftw/3.3.10.8 cray-hdf5/1.14.3.1 cray-pals/1.4.0 cray-libpals/1.4.0
81+
7882n DoD Nautilus
7983n-all slurm
8084n-cpu penguin/openmpi/4.1.5/gcc-8.5.0
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ < %namespace name=" helpers" file=" helpers.mako" />
4+
5+ % if engine == ' batch' :
6+ # PBS -l select=${nodes}:ncpus=192:mpiprocs=${tasks_per_node}
7+ # PBS -N "${name}"
8+ # PBS -l walltime=${walltime}
9+ % if partition:
10+ # PBS -q ${partition}
11+ % endif
12+ % if account:
13+ # PBS -A ${account}
14+ % endif
15+ % if email:
16+ # PBS -M ${email}
17+ # PBS -m abe
18+ % endif
19+ # PBS -o "${name}.out"
20+ # PBS -e "${name}.err"
21+ # PBS -V
22+ % endif
23+
24+ ${helpers.template_prologue ()}
25+
26+ ok " :) Loading modules:\n"
27+ cd " ${MFC_ROOT_DIR} "
28+ . ./mfc.sh load -c cc -m ${' g' if gpu else ' c' }
29+ cd - > /dev/null
30+ echo
31+
32+ % for target in targets:
33+ ${helpers.run_prologue(target)}
34+
35+ % if not mpi:
36+ (set -x; ${profiler} " ${target.get_install_binpath(case)} " )
37+ % else:
38+ (set -x; ${profiler} \
39+ mpirun -np ${nodes* tasks_per_node} \
40+ " ${target.get_install_binpath(case)} " )
41+ % endif
42+
43+ ${helpers.run_epilogue(target)}
44+
45+ echo
46+ % endfor
47+
48+ ${helpers.template_epilogue ()}
You can’t perform that action at this time.
0 commit comments