Skip to content

Commit

Permalink
add profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 7, 2023
1 parent 1e42f76 commit 291c6bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/driver/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@ DriverStatus EvolutionDriver::Execute() {

// Before loop do work
// App input version
Kokkos::Profiling::pushRegion("Driver_UserWorkBeforeLoop");
if (app_input->UserWorkBeforeLoop != nullptr) {
app_input->UserWorkBeforeLoop(pmesh, pinput, tm);
}

// packages version
for (auto &[name, pkg] : pmesh->packages.AllPackages()) {
pkg->UserWorkBeforeLoop(pmesh, pinput, tm);
}
Kokkos::Profiling::popRegion(); // Driver_UserWorkBeforeLoop

Kokkos::Profiling::pushRegion("Driver_Main");
while (tm.KeepGoing()) {
Expand Down

0 comments on commit 291c6bb

Please sign in to comment.