23 Kokkos::Profiling::ProfilingSection profile_section(
"profile section");
25 profile_section.start();
28 const Kokkos::Profiling::ScopedRegion guard_level_0(
"computation - level 0");
31 "computation - level 0 - pfor",
32 Kokkos::RangePolicy(exec, 0, 1),
35 exec.fence(
"computation - level 0 - fence after pfor");
37 Kokkos::Profiling::markEvent(
"buried marker");
40 const Kokkos::Profiling::ScopedRegion guard_level_1(
"computation - level 1");
44 Kokkos::parallel_reduce(
45 "computation - level 1 - preduce on default exec",
46 Kokkos::RangePolicy(0, 1),
47 KOKKOS_LAMBDA (
const typename Exec::size_type,
const double&) {},
53 profile_section.stop();
55 exec.fence(
"other fence after stopping the profile section");