18 #ifndef viskores_cont_kokkos_internal_KokkosTypes_h
19 #define viskores_cont_kokkos_internal_KokkosTypes_h
25 #include <Kokkos_Core.hpp>
37 using ExecutionSpace = Kokkos::DefaultExecutionSpace;
39 VISKORES_CONT_EXPORT
const ExecutionSpace& GetExecutionSpaceInstance();
41 template <
typename ValueType>
42 using KokkosViewCont = Kokkos::
43 View<ValueType*, Kokkos::LayoutRight, Kokkos::HostSpace, Kokkos::MemoryTraits<Kokkos::Unmanaged>>;
45 template <
typename ValueType>
46 using KokkosViewExec =
47 decltype(Kokkos::create_mirror(ExecutionSpace{}, KokkosViewCont<ValueType>{}));
49 template <
typename ValueType>
50 using KokkosViewConstCont =
typename KokkosViewCont<ValueType>::const_type;
52 template <
typename ValueType>
53 using KokkosViewConstExec =
typename KokkosViewExec<ValueType>::const_type;
59 #endif // viskores_cont_kokkos_internal_KokkosTypes_h