Kokkos Core Kernels Package Version of the Day
|
Dynamic views are restricted to rank-one and no layout. Resize only occurs on host outside of parallel_regions. Subviews are not allowed. More...
#include <Kokkos_DynamicView.hpp>
Public Types | |
using | array_type |
Compatible view of array of scalar types. | |
using | const_type |
Compatible view of const data type. | |
using | non_const_type |
Compatible view of non-const data type. | |
using | HostMirror = DynamicView |
Must be accessible everywhere. | |
using | uniform_device |
Unified types. | |
Public Member Functions | |
template<typename IntType > | |
void | resize_serial (IntType const &n) |
Resizing in serial can grow or shrink the array size up to the maximum number of chunks. | |
template<class... Prop> | |
DynamicView (const Kokkos::Impl::ViewCtorProp< Prop... > &arg_prop, const unsigned min_chunk_size, const unsigned max_extent) | |
Allocation constructor. | |
Dynamic views are restricted to rank-one and no layout. Resize only occurs on host outside of parallel_regions. Subviews are not allowed.
Definition at line 231 of file Kokkos_DynamicView.hpp.
using Kokkos::Experimental::DynamicView< DataType, P >::array_type |
Compatible view of array of scalar types.
Definition at line 269 of file Kokkos_DynamicView.hpp.
using Kokkos::Experimental::DynamicView< DataType, P >::const_type |
Compatible view of const data type.
Definition at line 273 of file Kokkos_DynamicView.hpp.
using Kokkos::Experimental::DynamicView< DataType, P >::non_const_type |
Compatible view of non-const data type.
Definition at line 277 of file Kokkos_DynamicView.hpp.
using Kokkos::Experimental::DynamicView< DataType, P >::HostMirror = DynamicView |
Must be accessible everywhere.
Definition at line 281 of file Kokkos_DynamicView.hpp.
using Kokkos::Experimental::DynamicView< DataType, P >::uniform_device |
Unified types.
Definition at line 284 of file Kokkos_DynamicView.hpp.
|
inline |
Allocation constructor.
Memory is allocated in chunks A maximum size is required in order to allocate a chunk-pointer array.
Definition at line 494 of file Kokkos_DynamicView.hpp.
|
inline |
Resizing in serial can grow or shrink the array size up to the maximum number of chunks.
Definition at line 405 of file Kokkos_DynamicView.hpp.