Skip to content

Commit 2b7d551

Browse files
committed
Standardize timing ranges
1 parent 2f3be63 commit 2b7d551

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

src/common/m_mpi_common.fpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ module m_mpi_common
1616
use m_derived_types !< Definitions of the derived types
1717
1818
use m_global_parameters !< Definitions of the global parameters
19+
20+
use m_nvtx
1921
! ==========================================================================
2022
2123
implicit none
@@ -239,6 +241,7 @@ contains
239241
#ifdef MFC_SIMULATION
240242
#ifdef MFC_MPI
241243
244+
call nvtxStartRange("TSTEP-RUNTIME-INFO-REDUCE-CRIT")
242245
! Reducing local extrema of ICFL, VCFL, CCFL and Rc numbers to their
243246
! global extrema and bookkeeping the results on the rank 0 processor
244247
call MPI_REDUCE(icfl_max_loc, icfl_max_glb, 1, &
@@ -253,6 +256,7 @@ contains
253256
MPI_DOUBLE_PRECISION, MPI_MIN, 0, &
254257
MPI_COMM_WORLD, ierr)
255258
end if
259+
call nvtxEndRange
256260
257261
#else
258262

src/simulation/m_mpi_proxy.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ contains
10701070
!$acc update host(q_cons_buff_send, ib_buff_send)
10711071
#:endif
10721072
1073-
call nvtxStartRange("RHS-MPI-SENDRECV")
10741073
call MPI_SENDRECV( &
10751074
p_send, buffer_count, MPI_DOUBLE_PRECISION, dst_proc, send_tag, &
10761075
p_recv, buffer_count, MPI_DOUBLE_PRECISION, src_proc, recv_tag, &

src/simulation/m_rhs.fpp

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ contains
669669
gm_alpha_qp%vf)
670670
call nvtxEndRange
671671

672-
call nvtxStartRange("RHS-MPI")
672+
call nvtxStartRange("RHS-COMMUNICATION")
673673
call s_populate_variables_buffers(q_prim_qp%vf, pb, mv)
674674
call nvtxEndRange
675675

@@ -849,6 +849,26 @@ contains
849849
call nvtxEndRange
850850
! END: Additional physics and source terms =========================
851851

852+
#:if chemistry
853+
if (chem_params%advection) then
854+
call nvtxStartRange("RHS-CHEM-ADVECTION")
855+
856+
#:for NORM_DIR, XYZ in [(1, 'x'), (2, 'y'), (3, 'z')]
857+
858+
if (id == ${NORM_DIR}$) then
859+
call s_compute_chemistry_rhs_${XYZ}$ ( &
860+
flux_n, &
861+
rhs_vf, &
862+
flux_src_n(${NORM_DIR}$)%vf, &
863+
q_prim_vf)
864+
end if
865+
866+
#:endfor
867+
868+
call nvtxEndRange
869+
end if
870+
#:endif
871+
852872
end do
853873
! END: Dimensional Splitting Loop =================================
854874

@@ -883,7 +903,7 @@ contains
883903
call nvtxEndRange
884904

885905
! Add bubles source term
886-
call nvtxStartRange("RHS_bubbles")
906+
call nvtxStartRange("RHS-BUBBLES-SRC")
887907
if (bubbles .and. (.not. adap_dt) .and. (.not. qbmm)) call s_compute_bubble_source( &
888908
q_cons_qp%vf(1:sys_size), &
889909
q_prim_qp%vf(1:sys_size), &

0 commit comments

Comments
 (0)