Skip to content

Commit 3995f4e

Browse files
wilfonbaBenjamin Alexander Wilfong
andauthored
Update phoenix.mako template (#822)
Co-authored-by: Benjamin Alexander Wilfong <bwilfong3@login-phoenix-rh9-6.pace.gatech.edu>
1 parent 068da2c commit 3995f4e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

toolchain/templates/phoenix.mako

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
#SBATCH --qos=${quality_of_service}
1919
% endif
2020
% if gpu:
21-
#SBATCH --gres=gpu:V100:${tasks_per_node}
22-
#SBATCH --mem-per-gpu=16G\
21+
#SBATCH -G${tasks_per_node}
2322
% endif
2423
% if email:
2524
#SBATCH --mail-user=${email}
@@ -41,10 +40,15 @@ echo
4140
% if not mpi:
4241
(set -x; ${profiler} "${target.get_install_binpath(case)}")
4342
% else:
44-
(set -x; ${profiler} \
45-
mpirun -np ${nodes*tasks_per_node} \
46-
--bind-to none \
47-
"${target.get_install_binpath(case)}")
43+
(set -x; srun \
44+
% if engine == 'interactive':
45+
--nodes ${nodes} --ntasks-per-node ${tasks_per_node} \
46+
--cpus-per-task 1 \
47+
% if gpu:
48+
--gpus-per-task 1 --gpu-bind closest \
49+
% endif
50+
% endif
51+
${profiler} "${target.get_install_binpath(case)}")
4852
% endif
4953

5054
${helpers.run_epilogue(target)}

0 commit comments

Comments
 (0)