Go to the documentation of this file.
20 #ifndef __KokkosTypes_hpp__
21 #define __KokkosTypes_hpp__
31 #include <Kokkos_Core.hpp>
32 #include <Kokkos_DualView.hpp>
33 #include <Kokkos_UnorderedMap.hpp>
47 using OpenMP = Kokkos::OpenMP;
52 using Cuda = Kokkos::Cuda;
65 Kokkos::Schedule<Kokkos::Static>,
66 Kokkos::IndexType<pFlow::uint32>>;
70 Kokkos::Schedule<Kokkos::Static>,
71 Kokkos::IndexType<pFlow::uint32>>;
75 Kokkos::Schedule<Kokkos::Dynamic>,
76 Kokkos::IndexType<pFlow::uint32>>;
80 Kokkos::Schedule<Kokkos::Dynamic>,
81 Kokkos::IndexType<pFlow::uint32>>;
84 template<
typename T1,
typename T2>
85 using Pair = Kokkos::pair<T1, T2>;
88 template<
typename T,
typename... properties>
92 template<
typename T,
typename... properties>
96 template<
typename T,
typename... properties>
100 template<
typename T,
typename... properties>
104 template<
typename T,
typename... properties>
108 template<
typename Key,
typename Value,
typename... properties>
112 template<
typename Key,
typename... properties>
124 template<
typename T,
typename Layout =
void>
128 template<
typename T,
typename Layout =
void>
139 template<
typename T,
typename Layout =
void>
143 template<
typename T,
typename Layout =
void>
150 Kokkos::MemoryTraits<
151 std::is_same_v<DefaultExecutionSpace, Serial> ? 0 : Kokkos::Atomic>>;
157 Kokkos::MemoryTraits<
158 std::is_same_v<DefaultExecutionSpace, Serial> ? 0 : Kokkos::Atomic>>;
162 #endif //__KokkosTypes_hpp__
Kokkos::View< T **, Layout, Kokkos::HostSpace > hostViewType2D
2D array on host
Kokkos::DefaultHostExecutionSpace DefaultHostExecutionSpace
Default Host execution space, on top of all host execution spaces.
Kokkos::Serial Serial
Serial execution space.
Kokkos::pair< T1, T2 > Pair
Pair of two variables.
Kokkos::View< T **, properties... > ViewType2D
2D view as an array
Kokkos::View< T > deviceViewTypeScalar
Scalar on device.
Kokkos::RangePolicy< Kokkos::DefaultExecutionSpace, Kokkos::Schedule< Kokkos::Dynamic >, Kokkos::IndexType< pFlow::uint32 > > hostRPolicyDynamic
Kokkos::DefaultExecutionSpace DefaultExecutionSpace
Default execution space, it can be device exe.
Kokkos::View< T **, Layout, void > deviceViewType2D
2D view on device as an array on device
Kokkos::DualView< T *, properties... > DualViewType1D
1D dual view as a vector
Kokkos::HostSpace HostSpace
Host memory space.
Kokkos::View< T * > deviceViewType1D
1D array (vector) with default device (memory space and execution space)
Kokkos::View< T *, Kokkos::MemoryTraits< std::is_same_v< DefaultExecutionSpace, Serial > ? 0 :Kokkos::Atomic > > deviceAtomicViewType1D
1D vector on device with atomic capabilities
Kokkos::UnorderedMap< Key, void, properties... > unorderedSet
unordered set
Kokkos::View< T ***, Layout, void > deviceViewType3D
3D view on device as an array on device
Kokkos::View< T ***, Layout, Kokkos::HostSpace > hostViewType3D
3D array on host
Kokkos::View< T, properties... > ViewTypeScalar
View for a scalar.
Kokkos::UnorderedMap< Key, Value, properties... > unorderedMap
unordered map
Kokkos::RangePolicy< Kokkos::DefaultExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< pFlow::uint32 > > hostRPolicyStatic
Kokkos::View< T *, properties... > ViewType1D
1D veiw as a vector
Kokkos::View< T, Kokkos::HostSpace > hostViewTypeScalar
Kokkos::View< T ***, properties... > ViewType3D
3D view as an array
Kokkos::View< T *, Kokkos::HostSpace > hostViewType1D
1D array (vector with host memeory space)
Kokkos::RangePolicy< Kokkos::DefaultExecutionSpace, Kokkos::Schedule< Kokkos::Dynamic >, Kokkos::IndexType< pFlow::uint32 > > deviceRPolicyDynamic
Kokkos::RangePolicy< Kokkos::DefaultExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< pFlow::uint32 > > deviceRPolicyStatic
Kokkos::View< T ***, Kokkos::MemoryTraits< std::is_same_v< DefaultExecutionSpace, Serial > ? 0 :Kokkos::Atomic > > deviceAtomicViewType3D
3D array on device with atomic capabilities