The logical-group is a logical collection of some work-items within a work-group. More...
#include <syclcompat/util.hpp>
Public Member Functions | |
logical_group (sycl::nd_item< dimensions > item, sycl::group< dimensions > parent_group, uint32_t size) | |
Dividing parent_group into several logical-groups. More... | |
logical_group (sycl::nd_item< dimensions > item) | |
uint32_t | get_local_linear_id () const |
Returns the index of the work-item within the logical-group. More... | |
uint32_t | get_group_linear_id () const |
Returns the index of the logical-group in the parent group. More... | |
uint32_t | get_local_linear_range () const |
Returns the number of work-items in the logical-group. More... | |
uint32_t | get_group_linear_range () const |
Returns the number of logical-group in the parent group. More... | |
The logical-group is a logical collection of some work-items within a work-group.
Note: Please make sure that the logical-group size is a power of 2 in the range [1, current_sub_group_size].
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the index of the work-item within the logical-group.
Definition at line 689 of file util.hpp.
Referenced by syclcompat::experimental::group_base< dimensions >::get_local_linear_id().
|
inline |
Returns the number of work-items in the logical-group.
Definition at line 697 of file util.hpp.
Referenced by syclcompat::experimental::group_base< dimensions >::get_local_linear_range().