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
24
24
log " $Y " " Gatech$W : Phoenix (p)"
25
25
log " $R " " Caltech$W : Richardson (r)"
26
26
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 " ): "
29
29
read u_c
30
30
log
31
31
fi
68
68
log " Loading modules (& env variables) for $M$COMPUTER$CR on $M$CG$CR " ' s:'
69
69
70
70
# Reset modules to default system configuration (unless Carpenter)
71
- if [ " $u_c " != ' c' ]; then
71
+ if [ " $u_c " ' != ' ' cc ' ] && [ " $u_c " ' != ' ' c' ]; then
72
72
module reset > /dev/null 2>&1
73
73
code=" $? "
74
74
@@ -97,7 +97,7 @@ if [ $(echo "$VARIABLES" | grep = | wc -c) -gt 0 ]; then
97
97
fi
98
98
99
99
# 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
101
101
ok " Found $M \$ CRAY_LD_LIBRARY_PATH$CR . Prepending to $M \$ LD_LIBRARY_PATH$CR ."
102
102
export LD_LIBRARY_PATH=" $CRAY_LD_LIBRARY_PATH :$LD_LIBRARY_PATH "
103
103
fi
Original file line number Diff line number Diff line change @@ -70,11 +70,15 @@ dai-all python cmake nvhpc-openmpi3/24.3 cuda
70
70
dai-all CC=nvc CXX=nvc++ FC=nvfortran
71
71
dai-gpu MFC_CUDA_CC=89,90
72
72
73
- c DoD Carpenter
73
+ c DoD Carpenter (GNU)
74
74
c-all python/3.12.1
75
75
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
76
76
c-cpu CC=gcc CXX=g++ FC=gfortran
77
77
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
+
78
82
n DoD Nautilus
79
83
n-all slurm
80
84
n-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