25 Kokkos::Profiling::ProfilingSection profile_section(
"profile section");
27 profile_section.start();
30 const Kokkos::Profiling::ScopedRegion guard_level_0(
"computation - level 0");
33 "computation - level 0 - pfor",
34 Kokkos::RangePolicy(exec, 0, 1),
37 exec.fence(
"computation - level 0 - fence after pfor");
39 Kokkos::Profiling::markEvent(
"buried marker");
42 const Kokkos::Profiling::ScopedRegion guard_level_1(
"computation - level 1");
46 Kokkos::parallel_reduce(
47 "computation - level 1 - preduce on default exec",
48 Kokkos::RangePolicy(0, 1),
49 KOKKOS_LAMBDA (
const typename Exec::size_type,
const double&) {},
55 profile_section.stop();
57 exec.fence(
"other fence after stopping the profile section");