File tree Expand file tree Collapse file tree 14 files changed +34
-12
lines changed Expand file tree Collapse file tree 14 files changed +34
-12
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1415% if account:
1516# SBATCH --account="${account}"
1617% endif
17- % if gpu:
18+ % if gpu ! = gpuConfigOptions.NONE.value :
1819# SBATCH --gpu-bind=verbose,closest
1920# SBATCH --gres=gpu:v100-16:${tasks_per_node}
2021% endif
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+
46
57% if engine == ' batch' :
68# 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+
46
57% if engine == ' batch' :
68# 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 % >
6+
57% if os.name == ' nt' :
68@echo off
79% else :
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1415% if account:
1516# SBATCH --account="${account}"
1617% endif
17- % if gpu:
18+ % if gpu ! = gpuConfigOptions.NONE.value :
1819# SBATCH --gpus-per-node=${tasks_per_node}
1920# SBATCH --mem=208G
2021# SBATCH --gpu-bind=closest
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1415% if account:
1516# SBATCH --account="${account}"
1617% endif
17- % if gpu:
18+ % if gpu ! = gpuConfigOptions.NONE.value :
1819# SBATCH --gpus-per-node=${tasks_per_node}
1920# SBATCH --mem=208G
2021# SBATCH --gpu-bind=closest
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1011# SBATCH --time=${walltime}
1112# SBATCH --cpus-per-task=7
1213# SBATCH -C nvme
13- % if gpu:
14+ % if gpu ! = gpuConfigOptions.NONE.value :
1415# SBATCH --gpus-per-task=1
1516# SBATCH --gpu-bind=closest
1617% endif
@@ -39,7 +40,7 @@ cd "${MFC_ROOT_DIR}"
3940cd - > /dev/null
4041echo
4142
42- % if gpu:
43+ % if gpu ! = gpuConfigOptions.NONE.value :
4344 export MPICH_GPU_SUPPORT_ENABLED=1
4445% else:
4546 export MPICH_GPU_SUPPORT_ENABLED=0
@@ -66,7 +67,7 @@ ulimit -s unlimited
6667 % if engine == ' interactive' :
6768 --unbuffered --nodes ${nodes} --ntasks-per-node ${tasks_per_node} \
6869 --cpus-per-task 7 \
69- % if gpu:
70+ % if gpu ! = gpuConfigOptions.NONE.value :
7071 --gpus-per-task 1 --gpu-bind closest \
7172 % endif
7273 ${profiler} " ${target.get_install_binpath(case)} " )
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
910# SBATCH --output="${name}.out"
1011# SBATCH --time=${walltime}
1112# SBATCH --cpus-per-task=7
12- % if gpu:
13+ % if gpu ! = gpuConfigOptions.NONE.value :
1314# SBATCH --gpus-per-task=1
1415# SBATCH --gpu-bind=closest
1516% endif
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1415% if account:
1516# SBATCH --account="${account}"
1617% endif
17- % if gpu:
18+ % if gpu ! = gpuConfigOptions.NONE.value :
1819# SBATCH --gpu-bind=verbose,closest
1920# SBATCH --gres=gpu:v100-16:${tasks_per_node}
2021% endif
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 %>
45
56% if engine == ' batch' :
67# SBATCH --nodes=${nodes}
1415% if account:
1516# SBATCH --account="${account}"
1617% endif
17- % if gpu:
18+ % if gpu ! = gpuConfigOptions.NONE.value :
1819# SBATCH --gpus-per-node=${tasks_per_node}
1920# SBATCH --mem=64G
2021# SBATCH --gpu-bind=closest
You can’t perform that action at this time.
0 commit comments