10#ifndef TPETRA_DETAILS_KOKKOS_COUNTER_HPP
11#define TPETRA_DETAILS_KOKKOS_COUNTER_HPP
18#include <Teuchos_FancyOStream.hpp>
24namespace DeepCopyCounter {
43namespace FenceCounter {
61namespace KokkosRegionCounter {
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
size_t get_count_different_space()
Query the deep_copy counter for copies between different spaces.
size_t get_count_same_space()
Query the deep_copy counter for copies in the same space.
void stop()
Stop the deep_copy counter.
void start()
Start the deep_copy counter.
void reset()
Reset the deep_copy counter.
size_t get_count_instance(const std::string &device)
Query the fence counter for given device, for an exec_space_instance.fence()
size_t get_count_global(const std::string &device)
Query the fence counter for given device, for an Kokkos::fence()
void reset()
Reset the fence counter.
void start()
Start the fence counter.
void stop()
Stop the fence counter.
void reset()
Reset the counter.
void dump_regions(std::ostream &os)
Print all observed region labels, separated by newline.
size_t get_count_region_contains(const std::string &substr)
How many regions containing substr have been seen.
void stop()
Stop the counter.
void start()
Start the counter.
Namespace Tpetra contains the class and methods constituting the Tpetra library.