File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed 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+ # 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 ()}
You can’t perform that action at this time.
0 commit comments