File tree Expand file tree Collapse file tree 15 files changed +7
-19
lines changed
Expand file tree Collapse file tree 15 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
5-
64
75% if engine == ' batch' :
86# PBS -l select=${nodes}:ncpus=192:mpiprocs=${tasks_per_node}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
5-
64
75% if engine == ' batch' :
86# PBS -l select=${nodes}:ncpus=192:mpiprocs=${tasks_per_node}
Original file line number Diff line number Diff line change 22import os
33from mako.exceptions import RuntimeException
44%>
5- <%! from mfc.state import gpuConfigOptions % >
65
76% if os.name == ' nt' :
87@echo off
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
1514% if account:
1615# SBATCH --account="${account}"
1716% endif
18- % if is_gpu_active :
17+ % if gpu ! = gpuConfigOptions.NONE.value :
1918# SBATCH --gpus-per-node=${tasks_per_node}
2019# SBATCH --mem=208G
2120# SBATCH --gpu-bind=closest
@@ -33,7 +32,7 @@ ${helpers.template_prologue()}
3332
3433ok " :) Loading modules:\n"
3534cd " ${MFC_ROOT_DIR} "
36- . ./mfc.sh load -c d -m ${' g' if is_gpu_active else ' c' }
35+ . ./mfc.sh load -c d -m ${' g' if gpu ! = gpuConfigOptions.NONE.value else ' c' }
3736cd - > /dev/null
3837echo
3938
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
Original file line number Diff line number Diff line change 1- <%! import os % >
1+ <%! import os
2+ from mfc.state import gpuConfigOptions
3+ %>
24
35<% is_gpu_active = (gpu != gpuConfigOptions.NONE .value) %>
6+
47<%def name = "template_prologue() ">
58% if os.name != ' nt' :
69 #>
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33< %namespace name=" helpers" file=" helpers.mako" />
4- < %! from mfc.state import gpuConfigOptions %>
54
65% if engine == ' batch' :
76# SBATCH --nodes=${nodes}
You can’t perform that action at this time.
0 commit comments