syclreference.com
  1. SYCL
  2. | API Reference
  3. | Command Groups
  4. | handler
  5. | fill

fill

Fills the data associated with the accessor using the scalar value.


template <typename TAcc, typename T, int dims, cl::sycl::access::mode accessMode, cl::sycl::access::target accessTarget, access::placeholder isPlaceholder, typename overloadDependantT, typename >
void fill(accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc, T val)
(1)
  1. Fills the data associated with the accessor using the scalar value.
    Parameters:
    • accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc : Accessor with the data that will be filled
    • T val : Scalar used to fill the device data with

syclreference.com — SYCL Reference Pages

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