Skip to content

Commit be77ab2

Browse files
authored
Revert "Fix Phoenix template for real (#824)" (#825)
1 parent 2e5ff46 commit be77ab2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
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, RKstep)
1151+
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(5)%vf, 5)
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, RKstep)
1165+
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(6)%vf, 6)
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: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#SBATCH --qos=${quality_of_service}
1919
% endif
2020
% if gpu:
21-
#SBATCH -G${tasks_per_node}
21+
#SBATCH --gres=gpu:V100:${tasks_per_node}
22+
#SBATCH --mem-per-gpu=16G\
2223
% endif
2324
% if email:
2425
#SBATCH --mail-user=${email}
@@ -40,15 +41,10 @@ echo
4041
% if not mpi:
4142
(set -x; ${profiler} "${target.get_install_binpath(case)}")
4243
% else:
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)}")
44+
(set -x; ${profiler} \
45+
mpirun -np ${nodes*tasks_per_node} \
46+
--bind-to none \
47+
"${target.get_install_binpath(case)}")
5248
% endif
5349

5450
${helpers.run_epilogue(target)}

0 commit comments

Comments
 (0)