Skip to content

Commit 52018eb

Browse files
authored
Merge branch 'MFlowCode:master' into rdma_mpi
2 parents edbd532 + 6d8ecdd commit 52018eb

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed

toolchain/bootstrap/modules.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3131
fi
@@ -68,7 +68,7 @@ fi
6868
log "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
9797
fi
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"
103103
fi

toolchain/modules

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,15 @@ dai-all python cmake nvhpc-openmpi3/24.3 cuda
7070
dai-all CC=nvc CXX=nvc++ FC=nvfortran
7171
dai-gpu MFC_CUDA_CC=89,90
7272

73-
c DoD Carpenter
73+
c DoD Carpenter (GNU)
7474
c-all python/3.12.1
7575
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
7676
c-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+
7882
n DoD Nautilus
7983
n-all slurm
8084
n-cpu penguin/openmpi/4.1.5/gcc-8.5.0
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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()}

0 commit comments

Comments
 (0)