Kokkos Core Kernels Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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. Resize only occurs on host outside of parallel_regions. 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_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...
 
typedef Kokkos::Device
< typename
traits::device_type::execution_space,
Kokkos::AnonymousSpace > 
uniform_device
 Unified types. More...
 

Public Member Functions

template<typename IntType >
std::enable_if
< std::is_integral< IntType >
::value
&&Kokkos::Impl::MemorySpaceAccess
< Kokkos::HostSpace, typename
Impl::ChunkArraySpace
< typename
traits::memory_space >
::memory_space >::accessible >
::type 
resize_serial (IntType const &n)
 Resizing in serial can grow or shrink the array size up to the maximum number of chunks. More...
 
 DynamicView (const std::string &arg_label, const unsigned min_chunk_size, const unsigned max_extent)
 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. Resize only occurs on host outside of parallel_regions. Subviews are not allowed.

Definition at line 85 of file Kokkos_DynamicView.hpp.

Member Typedef Documentation

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 130 of file Kokkos_DynamicView.hpp.

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 135 of file Kokkos_DynamicView.hpp.

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 140 of file Kokkos_DynamicView.hpp.

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

Must be accessible everywhere.

Definition at line 143 of file Kokkos_DynamicView.hpp.

template<typename DataType, typename... P>
typedef Kokkos::Device<typename traits::device_type::execution_space, Kokkos::AnonymousSpace> Kokkos::Experimental::DynamicView< DataType, P >::uniform_device

Unified types.

Definition at line 146 of file Kokkos_DynamicView.hpp.

Constructor & Destructor Documentation

template<typename DataType, typename... P>
Kokkos::Experimental::DynamicView< DataType, P >::DynamicView ( const std::string &  arg_label,
const unsigned  min_chunk_size,
const unsigned  max_extent 
)
inlineexplicit

Allocation constructor.

Memory is allocated in chunks A maximum size is required in order to allocate a chunk-pointer array.

Definition at line 413 of file Kokkos_DynamicView.hpp.

Member Function Documentation

template<typename DataType, typename... P>
template<typename IntType >
std::enable_if< std::is_integral<IntType>::value && Kokkos::Impl::MemorySpaceAccess< Kokkos::HostSpace , typename Impl::ChunkArraySpace< typename traits::memory_space >::memory_space >::accessible >::type Kokkos::Experimental::DynamicView< DataType, P >::resize_serial ( IntType const &  n)
inline

Resizing in serial can grow or shrink the array size up to the maximum number of chunks.

Definition at line 289 of file Kokkos_DynamicView.hpp.


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