Skip to content

Commit ae06f43

Browse files
committed
Add global simulation nvtx range
1 parent 2e16041 commit ae06f43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/simulation/p_main.fpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ program p_main
2121
use m_start_up
2222

2323
use m_time_steppers
24+
25+
use m_nvtx
2426
! ==========================================================================
2527

2628
implicit none
@@ -61,6 +63,7 @@ program p_main
6163
finaltime = t_step_stop*dt
6264
end if
6365

66+
call nvtxStartRange("Simulation")
6467
! Time-stepping Loop =======================================================
6568
do
6669

@@ -95,6 +98,8 @@ program p_main
9598
end do
9699
! ==========================================================================
97100

101+
call nvtxEndRange ! Simulation
102+
98103
deallocate (proc_time, io_proc_time)
99104

100105
call s_finalize_modules()

0 commit comments

Comments
 (0)