syclreference.com
  1. SYCL
  2. | API Reference
  3. | Buffers
  4. | buffer
  5. | get_access

get_access

MISSING


template <access::mode accessMode, access::target accessTarget>
accessor<T, dimensions, accessMode, accessTarget> get_access(cl::sycl::handler & cgh)
(1)
template <access::mode accessMode, access::target accessTarget>
accessor<T, dimensions, accessMode, accessTarget> get_access(cl::sycl::handler & cgh, id<dimensions> offset, range<dimensions> range)
(2)
template <access::mode accessMode, access::target accessTarget>
accessor<T, dimensions, accessMode, accessTarget> get_access(cl::sycl::handler & cgh, range<dimensions> range, id<dimensions> offset)
(3)
template <access::mode accessMode>
accessor<T, dimensions, accessMode, access::target::host_buffer> get_access()
(4)
template <access::mode accessMode>
accessor<T, dimensions, accessMode, access::target::host_buffer> get_access(id<dimensions> offset, range<dimensions> range)
(5)
template <access::mode accessMode>
accessor<T, dimensions, accessMode, access::target::host_buffer> get_access(range<dimensions> range, id<dimensions> offset)
(6)
  1. this function returns an accessor to the buffer in the given command_group scope.
    Parameters:
    • cl::sycl::handler & cgh : Reference to the command group scope where the accessor is
    Returns: Device accessor
  2. (deprecated (Deprecated since SYCL 1.2.1)) Returns an accessor to the buffer in the given command_group scope.
    Parameters:
    • cl::sycl::handler & cgh : Reference to the command group scope where the accessor is
    • id<dimensions> offset : the offset that the accessor will be able to update from.
    • range<dimensions> range : the range in which the accessor will be updating the data.
    Returns: Device accessor
  3. Returns an accessor to the buffer in the given command group scope.
    Parameters:
    • cl::sycl::handler & cgh : Reference to the command group scope where the accessor is
    • range<dimensions> range : The range in which the accessor will be updating the data
    • id<dimensions> offset : The offset that the accessor will be able to update from
    Returns: Device accessor
  4. Returns an accessor to the buffer, only used on the host side
    Returns: Host accessor
  5. (deprecated (Deprecated since SYCL 1.2.1)) Returns an accessor to the buffer, only used on the host side
    Parameters:
    • id<dimensions> offset : The offset that the accessor will be able to update from.
    • range<dimensions> range : The range in which the accessor will be updating the data.
    Returns: Host accessor
  6. Returns an accessor to the buffer, only used on the host side
    Parameters:
    • range<dimensions> range : The range in which the accessor will be updating the data
    • id<dimensions> offset : The offset that the accessor will be able to update from
    Returns: Host accessor

syclreference.com — SYCL Reference Pages

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