syclreference.com
  1. SYCL
  2. | API Reference
  3. | Accessors
  4. | accessor
  5. | accessor

accessor<elemT, kDims, kMode, kTarget, isPlaceholder>

MISSING


template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, interface_dims, AllocatorT> & bufferRef)
(1)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, interface_dims, AllocatorT> & bufferRef, cl::sycl::handler & commandHandler)
(2)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, kDims, AllocatorT> & bufferRef, cl::sycl::handler & commandHandler, id<kDims> accessOffset, range<kDims> accessRange)
(3)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, kDims, AllocatorT> & bufferRef, cl::sycl::handler & commandHandler, range<kDims> accessRange, id<kDims> accessOffset)
(4)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, kDims, AllocatorT> & bufferRef, id<kDims> accessOffset, range<kDims> accessRange)
(5)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(buffer<elemT, kDims, AllocatorT> & bufferRef, range<kDims> accessRange, id<kDims> accessOffset)
(6)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(image<(kDims + 1), AllocatorT> & imageRef, cl::sycl::handler & commandHandler)
(7)
template <typename AllocatorT, typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(image<kDims, AllocatorT> & imageRef, cl::sycl::handler & commandHandler)
(8)
template <typename AllocatorT, typename overloadDependantT, typename >
explicit accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(image<kDims, AllocatorT> & imageRef)
(9)
template <typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(cl::sycl::handler & commandHandler)
(10)
template <typename overloadDependantT, typename >
accessor<elemT, kDims, kMode, kTarget, isPlaceholder>(range<interface_dims> numElements, cl::sycl::handler & commandHandler)
(11)
  1. Constructs an accessor of access target access::target::host_buffer by taking a buffer object and initialises the base_accessor with the buffer, the access target, the access mode and the element size.
    Parameters:
    • buffer<elemT, interface_dims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
  2. Constructs an accessor of access target access::target::global_buffer or access::target::constant_buffer by taking a buffer object and a handler and initialises the base_accessor with the buffer, the handler, the access target, the access mode and the element size.
    Parameters:
    • buffer<elemT, interface_dims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group
  3. (deprecated (Deprecated constructor since SYCL 1.2.1)) Constructs an accessor of access target access::target::global_buffer or access::target::constant_buffer by taking a buffer object, a handler, an offset and a range and initialises the base_accessor with the buffer, the handler, the access target, the access mode and the element size. This constructor is for constructing a sub accessor.
    Parameters:
    • buffer<elemT, kDims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group
    • id<kDims> accessOffset : The offset that the sub accessor should have access from.
    • range<kDims> accessRange : The range that the sub accessor should have access to.
  4. Constructs an accessor of access target global_buffer or constant_buffer from a buffer object, a handler, a range and an offset.
    Parameters:
    • buffer<elemT, kDims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group
    • range<kDims> accessRange : The range that the accessor should have access to
    • id<kDims> accessOffset : The offset that the accessor should have access from
  5. (deprecated (Deprecated constructor since SYCL 1.2.1)) Constructs an accessor of access target access::target::host_buffer by taking a buffer object, an offset and a range and initialises the base_accessor with the buffer, the access target, the access mode and the element size. This constructor is for constructing a sub accessor.
    Parameters:
    • buffer<elemT, kDims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
    • id<kDims> accessOffset : The offset that the sub accessor should have access from.
    • range<kDims> accessRange : The range that the sub accessor should have access to.
  6. Constructs an accessor of access target host_buffer from a buffer object, an offset and a range
    Parameters:
    • buffer<elemT, kDims, AllocatorT> & bufferRef : Reference to the buffer object the accessor is to access
    • range<kDims> accessRange : The range that the accessor should have access to
    • id<kDims> accessOffset : The offset that the accessor should have access from
  7. Constructs an accessor of access target access::target::image_array by taking an image object of dimensionality one greater than this accessor and initialises the accessor_common with the image.
    Parameters:
    • image<(kDims + 1), AllocatorT> & imageRef : Reference to the image object being accessed.
    • cl::sycl::handler & commandHandler : Reference to the handler of the command group the
  8. Constructs an accessor of access target access::target::image by taking an image object and a handler and initialises the base_accessor with the image, the handler, the access target, the access mode and the element size.
    Parameters:
    • image<kDims, AllocatorT> & imageRef : Reference to the image object the accessor is to access
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group
  9. Constructs an accessor of access target access::target::host_image by taking an image object and initialises the base_accessor with the image, the access target, the access mode and the element size.
    Parameters:
    • image<kDims, AllocatorT> & imageRef : Reference to the image object the accessor is to access
  10. Constructs a 0-dimensional accessor of access target access::target::local by taking a handler and initialises the base_accessor with a range of 1, the handler, the access target, the access mode and the element size.
    Parameters:
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group
  11. Constructs an n-dimensional accessor of access target access::target::local by taking a range and a handler and initialises the base_accessor with the range, the handler, the access target, the access mode and the element size.
    Parameters:
    • range<interface_dims> numElements : The range that local memory should be allocated for.
    • cl::sycl::handler & commandHandler : Reference to the handler object for the command group

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000