42 #ifndef TPETRA_VIEWACCEPTER_HPP
43 #define TPETRA_VIEWACCEPTER_HPP
45 #include <Teuchos_ArrayRCP.hpp>
46 #include "Tpetra_ConfigDefs.hpp"
48 #include <Kokkos_SerialNode.hpp>
49 #ifdef HAVE_KOKKOSCLASSIC_TBB
50 #include <Kokkos_TBBNode.hpp>
52 #ifdef HAVE_KOKKOSCLASSIC_THREADPOOL
53 #include <Kokkos_TPINode.hpp>
55 #ifdef HAVE_KOKKOSCLASSIC_OPENMP
56 #include <Kokkos_OpenMPNode.hpp>
71 inline static ArrayRCP<T> acceptView(
const ArrayRCP<T> &view) {
72 Node::this_node_type_does_not_support_object_construction_from_user_views();
84 inline static ArrayRCP<T> acceptView(
const ArrayRCP<T> &view) {
91 #ifdef HAVE_KOKKOSCLASSIC_TBB
93 class ViewAccepter<Kokkos::TBBNode> :
public ViewAccepterSupportedNode {};
95 #ifdef HAVE_KOKKOSCLASSIC_THREADPOOL
97 class ViewAccepter<Kokkos::TPINode> :
public ViewAccepterSupportedNode {};
99 #ifdef HAVE_KOKKOSCLASSIC_OPENMP
101 class ViewAccepter<Kokkos::OpenMPNode> :
public ViewAccepterSupportedNode {};
ViewAccepter provides support for compile-time detection based on Node type, of support for accepting...