cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t > Class Template Reference
#include <host_accessor.h>
Public Member Functions | |
template<typename AllocatorT > | |
accessor (buffer< elemT, interface_dims, AllocatorT > &bufferRef, const property_list &propList={}) | |
Constructs a host accessor. More... | |
template<typename AllocatorT , COMPUTECPP_ENABLE_IF(elemT, is_n_dim) > | |
accessor (buffer< elemT, kDims, AllocatorT > &bufferRef, range< kDims > accessRange, const property_list &propList={}) | |
Constructs a ranged host accessor. More... | |
template<typename AllocatorT , COMPUTECPP_ENABLE_IF(elemT, is_n_dim) > | |
accessor (buffer< elemT, kDims, AllocatorT > &bufferRef, range< kDims > accessRange, id< kDims > accessOffset, const property_list &propList={}) | |
Constructs a ranged host accessor. More... | |
template<typename AllocatorT , COMPUTECPP_ENABLE_IF(elemT, is_n_dim) > | |
COMPUTECPP_DEPRECATED_BY_SYCL_VER (201703, "Use overload where the range comes before the offset.") accessor(buffer< elemT | |
Constructs a ranged host accessor. More... | |
AllocatorT id< kDims > range< kDims > | detail::access_range (accessOffset, accessRange)} |
Public Attributes | |
kDims | |
AllocatorT & | bufferRef |
AllocatorT id< kDims > | accessOffset |
AllocatorT id< kDims > range< kDims > | accessRange: base_t{bufferRef |
Detailed Description
template<typename elemT, int kDims, access::mode kMode>
class cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >
Definition at line 27 of file host_accessor.h.
Constructor & Destructor Documentation
◆ accessor() [1/3]
|
inline |
Constructs a host accessor.
- Template Parameters
-
AllocatorT Type of the buffer allocator COMPUTECPP_ENABLE_IF Only enabled for host buffer accessors
- Parameters
-
bufferRef Buffer object where access is being requested propList Additional properties
Definition at line 52 of file host_accessor.h.
◆ accessor() [2/3]
|
inline |
Constructs a ranged host accessor.
- Template Parameters
-
AllocatorT Type of the buffer allocator COMPUTECPP_ENABLE_IF Only enabled for host buffer accessors which are not 0-dimensional
- Parameters
-
bufferRef Buffer object where access is being requested accessRange Range of data to access propList Additional properties
Definition at line 67 of file host_accessor.h.
◆ accessor() [3/3]
|
inline |
Constructs a ranged host accessor.
- Template Parameters
-
AllocatorT Type of the buffer allocator COMPUTECPP_ENABLE_IF Only enabled for host buffer accessors which are not 0-dimensional
- Parameters
-
bufferRef Buffer object where access is being requested accessRange Range of data to access accessOffset Point where data access starts propList Additional properties
Definition at line 81 of file host_accessor.h.
Member Function Documentation
◆ COMPUTECPP_DEPRECATED_BY_SYCL_VER()
cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >::COMPUTECPP_DEPRECATED_BY_SYCL_VER | ( | 201703 | , |
"Use overload where the range comes before the offset." | |||
) |
Constructs a ranged host accessor.
- Template Parameters
-
AllocatorT Type of the buffer allocator COMPUTECPP_ENABLE_IF Only enabled for host buffer accessors which are not 0-dimensional
- Parameters
-
bufferRef Buffer object where access is being requested accessOffset Point where data access starts accessRange Range of data to access
- Deprecated:
- Need to reverse the order of the access offset and range, see 4.7.6.6 Buffer accessor interface in SYCL 1.2.1
◆ detail::access_range()
|
inline |
Definition at line 102 of file host_accessor.h.
Member Data Documentation
◆ accessOffset
AllocatorT id<kDims> cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >::accessOffset |
Definition at line 100 of file host_accessor.h.
◆ accessRange
AllocatorT id<kDims> range<kDims> cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >::accessRange |
Definition at line 100 of file host_accessor.h.
◆ bufferRef
AllocatorT& cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >::bufferRef |
Definition at line 100 of file host_accessor.h.
◆ kDims
cl::sycl::accessor< elemT, kDims, kMode, access::target::host_buffer, access::placeholder::false_t >::kDims |
Definition at line 100 of file host_accessor.h.
The documentation for this class was generated from the following file: