Kokkos Core Kernels Package  Version of the Day
Public Types | Public Member Functions | List of all members
Kokkos::Experimental::DynamicView< DataType, P > Class Template Reference

Dynamic views are restricted to rank-one and no layout. Subviews are not allowed. More...

#include <Kokkos_DynamicView.hpp>

Inheritance diagram for Kokkos::Experimental::DynamicView< DataType, P >:
Inheritance graph
[legend]

Public Types

typedef DynamicView< typename traits::data_type, typename traits::device_typearray_type
 Compatible view of array of scalar types. More...
 
typedef DynamicView< typename traits::const_data_type, typename traits::device_typeconst_type
 Compatible view of const data type. More...
 
typedef DynamicView< typename traits::non_const_data_type, typename traits::device_typenon_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...
 

Detailed Description

template<typename DataType, typename ... P>
class Kokkos::Experimental::DynamicView< DataType, P >

Dynamic views are restricted to rank-one and no layout. Subviews are not allowed.

Definition at line 59 of file Kokkos_DynamicView.hpp.

Member Typedef Documentation

◆ array_type

template<typename DataType, typename ... P>
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.

◆ const_type

template<typename DataType, typename ... P>
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.

◆ non_const_type

template<typename DataType, typename ... P>
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.

◆ HostMirror

template<typename DataType, typename ... P>
typedef DynamicView Kokkos::Experimental::DynamicView< DataType, P >::HostMirror

Must be accessible everywhere.

Definition at line 111 of file Kokkos_DynamicView.hpp.

Constructor & Destructor Documentation

◆ DynamicView()

template<typename DataType, typename ... P>
Kokkos::Experimental::DynamicView< DataType, P >::DynamicView ( const std::string &  arg_label,
const memory_pool arg_pool,
const size_t  arg_size_max 
)
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.

Member Function Documentation

◆ resize_parallel()

template<typename DataType, typename ... P>
KOKKOS_INLINE_FUNCTION void Kokkos::Experimental::DynamicView< DataType, P >::resize_parallel ( size_t  n) const
inline

Resizing in parallel only increases the array size, never decrease.

Definition at line 222 of file Kokkos_DynamicView.hpp.

◆ resize_serial()

template<typename DataType, typename ... P>
void Kokkos::Experimental::DynamicView< DataType, P >::resize_serial ( size_t  n)
inline

Resizing in serial can grow or shrink the array size,.

Definition at line 270 of file Kokkos_DynamicView.hpp.


The documentation for this class was generated from the following file: