Skip to content

Commit

Permalink
Profiling region for memory location check
Browse files Browse the repository at this point in the history
	modified:   src/synergia/simulation/propagator.cc
  • Loading branch information
Sajid Ali committed Apr 25, 2024
1 parent 1dc5b79 commit c0c457b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/synergia/simulation/propagator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Propagator::do_step(Bunch_simulator& simulator,
// ensure that particles are on the device in case any of the
// following might have transferred them onto the host
// custom diagnostics routines, turn_end_action, etc
Kokkos::Profiling::pushRegion("memory-location check before step-apply");
for (auto& train : simulator.get_trains()) {
for (auto& bunch : train.get_bunches()) {
auto bparts = bunch.get_bunch_particles();
Expand All @@ -58,6 +59,7 @@ Propagator::do_step(Bunch_simulator& simulator,
}
}
}
Kokkos::Profiling::popRegion();

// propagate through the step
step.apply(simulator, logger);
Expand Down

0 comments on commit c0c457b

Please sign in to comment.