syclreference.com
  1. SYCL
  2. | API Reference
  3. | Ranges and index space identifiers
  4. | item

item<dimensions, with_offset>

The cl::sycl::item object is a container for all information about a work item. The cl::sycl::item object is used within the handler::parallel_for and information about the local and global sizes of an enqueued nd_range as well as the local and global ids of the work item. item is a derived class of detail::item_base, which is a non-templated class implementing most of the functionality of cl::sycl::item.

template <int dimensions, bool with_offset>
class cl::sycl::item;

Member Functions

(constructor)
get_id

MISSING

get_offset

Get the invocation offset.

get_range

MISSING

operator detail::enable_if_t<has_no_offset<sfinae>(), item<dimensions, true>>

Returns an item representing the same information as the object holds but also includes the offset set to 0

operator id<dimensions>

conversion operator from

Functions

operator!=

MISSING

operator==

MISSING

syclreference.com — SYCL Reference Pages

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