16#include "Kokkos_Core.hpp"
22 kokkos_region_active_(false)
28 kokkos_region_active_ =
false;
30 kokkos_region_active_ =
true;
31 ::Kokkos::Profiling::pushRegion(name);
34 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
39 kokkos_region_active_ =
false;
44 kokkos_region_active_ =
true;
45 ::Kokkos::Profiling::pushRegion(name);
48 tm = Teuchos::rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(name)));
54 ::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.
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.
Nonmember function that computes a residual Computes R = B - A * X.
Namespace Tpetra contains the class and methods constituting the Tpetra library.