|
Kokkos Core Kernels Package
Version of the Day
|
ViewDataHandle provides the type of the 'data handle' which the view uses to access data with the [] operator. It also provides an allocate function and a function to extract a raw ptr from the data handle. ViewDataHandle also defines an enum ReferenceAble which specifies whether references/pointers to elements can be taken and a 'return_type' which is what the view operators will give back. Specialisation of this object allows three things depending on ViewTraits and compiler options: (i) Use special allocator (e.g. huge pages/small pages and pinned memory) (ii) Use special data handle type (e.g. add Cuda Texture Object) (iii) Use special access intrinsics (e.g. texture fetch and non-caching loads) More...
#include <Kokkos_View.hpp>
ViewDataHandle provides the type of the 'data handle' which the view uses to access data with the [] operator. It also provides an allocate function and a function to extract a raw ptr from the data handle. ViewDataHandle also defines an enum ReferenceAble which specifies whether references/pointers to elements can be taken and a 'return_type' which is what the view operators will give back. Specialisation of this object allows three things depending on ViewTraits and compiler options: (i) Use special allocator (e.g. huge pages/small pages and pinned memory) (ii) Use special data handle type (e.g. add Cuda Texture Object) (iii) Use special access intrinsics (e.g. texture fetch and non-caching loads)
Definition at line 237 of file Kokkos_View.hpp.
1.7.6.1