Common Member Functions

The common member functions provide a mechanism for a developer to query properties of a sub-group and a work-item's position in it.

Member function Description
id<1> get_local_id() const

Returns an id representing the index of the work-item within the sub-group.

range<1> get_local_range() const

Returns a SYCL range representing the number of work-items in the sub-group.

range<1> get_max_local_range() const

Returns a SYCL range representing the maximum number of work-items in any sub-group within the nd-range.

id<1> get_group_id() const

Returns an id representing the index of the sub-group within the work-group.

uint32_t get_group_range() const

Returns the number of sub-groups within the work-group.

uint32_t get_uniform_group_range() const

Returns the number of sub-groups per work-group in the uniform region of the nd-range.