Skip to content

Commit 2e5ff46

Browse files
wilfonbaBenjamin Alexander Wilfong
andauthored
Fix Phoenix template for real (#824)
Co-authored-by: Benjamin Alexander Wilfong <bwilfong3@login-phoenix-rh9-6.pace.gatech.edu>
1 parent 9aa309a commit 2e5ff46

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/simulation/m_time_steppers.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ contains
11481148
if (proc_rank == 0) print *, 'RKCK 5th time-stage at', rkck_time_tmp
11491149
#endif
11501150
call s_compute_rhs(q_cons_ts(2)%vf, q_T_sf, q_prim_vf, rhs_ts_rkck(5)%vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)
1151-
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(5)%vf, 5)
1151+
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(5)%vf, RKstep)
11521152
call s_update_tmp_rkck(5, q_cons_ts, rhs_ts_rkck, lag_largestep)
11531153
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11541154
if (restart_rkck_step) cycle
@@ -1162,7 +1162,7 @@ contains
11621162
if (proc_rank == 0) print *, 'RKCK 6th time-stage at', rkck_time_tmp
11631163
#endif
11641164
call s_compute_rhs(q_cons_ts(2)%vf, q_T_sf, q_prim_vf, rhs_ts_rkck(6)%vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)
1165-
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(6)%vf, 6)
1165+
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(6)%vf, RKstep)
11661166
call s_update_tmp_rkck(6, q_cons_ts, rhs_ts_rkck, lag_largestep)
11671167
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11681168
if (restart_rkck_step) cycle

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)