42 #include "TpetraCore_config.h"
43 #include "Kokkos_Core.hpp"
49 namespace DeepCopyCounterDetails {
50 void kokkosp_begin_deep_copy(Kokkos::Tools::SpaceHandle dst_handle,
const char* dst_name,
const void* dst_ptr,
51 Kokkos::Tools::SpaceHandle src_handle,
const char* src_name,
const void* src_ptr,
54 if(DeepCopyCounter::count_active) {
55 if(strcmp(dst_handle.name,src_handle.name)) {
56 DeepCopyCounter::count++;
66 bool DeepCopyCounter::count_active=
false;
67 size_t DeepCopyCounter::count=0;
72 Kokkos::Tools::Experimental::set_begin_deep_copy_callback(DeepCopyCounterDetails::kokkosp_begin_deep_copy);
static size_t get_count()
Query the deep_copy counter.
static void start()
Start the deep_copy counter.
Declaration of Tpetra::Details::DeepCopyCounter, a class that uses Kokkos' profiling library to count...
static size_t stop()
Stop the deep_copy counter.
static void reset()
Reset the deep_copy counter.