Kokkos Core Kernels Package
Version of the Day
|
Dynamic views are restricted to rank-one and no layout. Subviews are not allowed. More...
#include <Kokkos_DynamicView.hpp>
Public Types | |
typedef DynamicView< typename traits::data_type, typename traits::device_type > | array_type |
Compatible view of array of scalar types. More... | |
typedef DynamicView< typename traits::const_data_type, typename traits::device_type > | const_type |
Compatible view of const data type. More... | |
typedef DynamicView< typename traits::non_const_data_type, typename traits::device_type > | non_const_type |
Compatible view of non-const data type. More... | |
typedef DynamicView | HostMirror |
Must be accessible everywhere. More... | |
Public Member Functions | |
KOKKOS_INLINE_FUNCTION void | resize_parallel (size_t n) const |
Resizing in parallel only increases the array size, never decrease. More... | |
void | resize_serial (size_t n) |
Resizing in serial can grow or shrink the array size,. More... | |
DynamicView (const std::string &arg_label, const memory_pool &arg_pool, const size_t arg_size_max) | |
Allocation constructor. More... | |
Dynamic views are restricted to rank-one and no layout. Subviews are not allowed.
Definition at line 59 of file Kokkos_DynamicView.hpp.
typedef DynamicView< typename traits::data_type , typename traits::device_type > Kokkos::Experimental::DynamicView< DataType, P >::array_type |
Compatible view of array of scalar types.
Definition at line 98 of file Kokkos_DynamicView.hpp.
typedef DynamicView< typename traits::const_data_type , typename traits::device_type > Kokkos::Experimental::DynamicView< DataType, P >::const_type |
Compatible view of const data type.
Definition at line 103 of file Kokkos_DynamicView.hpp.
typedef DynamicView< typename traits::non_const_data_type , typename traits::device_type > Kokkos::Experimental::DynamicView< DataType, P >::non_const_type |
Compatible view of non-const data type.
Definition at line 108 of file Kokkos_DynamicView.hpp.
typedef DynamicView Kokkos::Experimental::DynamicView< DataType, P >::HostMirror |
Must be accessible everywhere.
Definition at line 111 of file Kokkos_DynamicView.hpp.
|
inlineexplicit |
Allocation constructor.
Memory is allocated in chunks from the memory pool. The chunk size conforms to the memory pool's chunk size. A maximum size is required in order to allocate a chunk-pointer array.
Definition at line 388 of file Kokkos_DynamicView.hpp.
|
inline |
Resizing in parallel only increases the array size, never decrease.
Definition at line 222 of file Kokkos_DynamicView.hpp.
|
inline |
Resizing in serial can grow or shrink the array size,.
Definition at line 270 of file Kokkos_DynamicView.hpp.