1#ifndef __COMMON_EXPORT_HPP__
2#define __COMMON_EXPORT_HPP__
4#include <Kokkos_Core_fwd.hpp>
7using ComputeSpace = Kokkos::DefaultExecutionSpace;
8using HostSpace = Kokkos::DefaultHostExecutionSpace;
10#ifdef ENABLE_KOKKOS_PROFILING
11# include <Kokkos_Profiling_ScopedRegion.hpp>
12# define PROFILE_SECTION(__label_section__) \
13 Kokkos::Profiling::ScopedRegion region(__label_section__);
15# define PROFILE_SECTION(__label_section__) ;
18#define EIGEN_INDEX(__VALUE__) static_cast<int>(__VALUE__)
22# include <source_location>
32 explicit Canary(std::string_view lbl, std::source_location location)
37 std::cout << location.function_name() <<
": " << lbl << std::endl;
42 std::cout <<
"END " <<
_lbl << std::endl;
48# define MkCanary(x) Canary(x, std::source_location());
Canary & operator=(const Canary &)=delete
~Canary()
Definition common.hpp:40
Canary(std::string_view lbl, std::source_location location)
Definition common.hpp:32
Canary(const Canary &)=delete
Canary & operator=(Canary &&)=delete
std::string _lbl
Definition common.hpp:46