16#include "Kokkos_Core.hpp"
22 : kokkos_region_active_(
false) {
26 kokkos_region_active_ =
false;
28 kokkos_region_active_ =
true;
29 ::Kokkos::Profiling::pushRegion(name);
32 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
36 kokkos_region_active_ =
false;
40 kokkos_region_active_ =
true;
41 ::Kokkos::Profiling::pushRegion(name);
44 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
50 ::Kokkos::Profiling::popRegion();
Declaration of Tpetra::Details::Behavior, a class that describes Tpetra's behavior.
Declaration of Tpetra::Details::Profiling, a scope guard for Kokkos Profiling.
Struct that holds views of the contents of a CrsMatrix.
static bool timing()
Whether Tpetra is in timing mode.
static bool profilingRegionUseTeuchosTimers()
Use Teuchos::Timer in Tpetra::ProfilingRegion.
static bool profilingRegionUseKokkosProfiling()
Use Kokkos::Profiling in Tpetra::ProfilingRegion.
ProfilingRegion()
Default constructor does not construct a region.
~ProfilingRegion()
Close region to profile.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.