Skip to content

Commit b5f5301

Browse files
committed
corrected the Oscar mako file
1 parent 619e9f1 commit b5f5301

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

toolchain/templates/oscar.mako

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
#SBATCH --account="${account}"
1616
% endif
1717
% if gpu:
18-
#SBATCH --gpus-per-node=${tasks_per_node}
19-
#SBATCH --mem=64G
20-
#SBATCH --gpu-bind=closest
18+
#SBATCH --gpu-bind=verbose,closest
19+
#SBATCH --gres=gpu:v100-16:${tasks_per_node}
2120
% endif
2221
#SBATCH --output="${name}.out"
2322
#SBATCH --error="${name}.err"
@@ -31,7 +30,7 @@
3130
${helpers.template_prologue()}
3231

3332
ok ":) Loading modules:\n"
34-
cd "${MFC_ROOTDIR}"
33+
cd "${MFC_ROOT_DIR}"
3534
. ./mfc.sh load -c o -m ${'g' if gpu else 'c'}
3635
cd - > /dev/null
3736
echo
@@ -42,9 +41,8 @@ echo
4241
% if not mpi:
4342
(set -x; ${profiler} "${target.get_install_binpath(case)}")
4443
% else:
45-
(set -x; ${profiler} \
46-
mpirun -np ${nodes*tasks_per_node} \
47-
${' '.join([f"'{x}'" for x in ARG('--') ])} \
44+
(set -x; ${profiler} \
45+
mpirun -np ${nodes*tasks_per_node} \
4846
"${target.get_install_binpath(case)}")
4947
% endif
5048

0 commit comments

Comments
 (0)