cl::sycl::h_item< dimensions > Class Template Reference
Identifies an instance of a parallel_for_work_item function object executing at each point in a local range passed to a parallel_for_work_item call. More...
#include <base.h>
Public Member Functions | |
h_item ()=delete | |
Not user constructible. More... | |
item< dimensions, false > | get_global () const |
Retrieves the constituent global item representing the work-item's position in the global iteration space. More... | |
item< dimensions, false > | get_local () const |
Retrieves the constituent logical local item representing the work-item's position in the local iteration space as provided upon the invocation of parallel_for_work_item. More... | |
item< dimensions, false > | get_logical_local () const |
Retrieves the constituent logical local item representing the work-item's position in the local iteration space as provided upon the invocation of parallel_for_work_item. More... | |
item< dimensions, false > | get_physical_local () const |
Retrieves the constituent physical local item representing the work-item's position in the local iteration space as provided upon the invocation of parallel_for_work_group. More... | |
range< dimensions > | get_global_range () const |
Retrieves the range representing the sizes of the global iteration space. More... | |
size_t | get_global_range (int dimension) const |
Retrieves the value of the global range for the specified dimension. More... | |
id< dimensions > | get_global_id () const |
Retrieves the id representing the position of the item in the global iteration space. More... | |
size_t | get_global_id (int dimension) const |
Retrieves the value of the global ID for the specified dimension. More... | |
range< dimensions > | get_local_range () const |
Retrieves the range representing the sizes of the logical local iteration space. More... | |
size_t | get_local_range (int dimension) const |
Retrieves the value of the logical local range for the specified dimension. More... | |
id< dimensions > | get_local_id () const |
Retrieves the id representing the position of the item in the logical local iteration space. More... | |
size_t | get_local_id (int dimension) const |
Retrieves the value of the logical local ID for the specified dimension. More... | |
range< dimensions > | get_logical_local_range () const |
Retrieves the range representing the sizes of the logical local iteration space. More... | |
size_t | get_logical_local_range (int dimension) const |
Retrieves the value of the logical local range for the specified dimension. More... | |
id< dimensions > | get_logical_local_id () const |
Retrieves the id representing the position of the item in the logical local iteration space. More... | |
size_t | get_logical_local_id (int dimension) const |
Retrieves the value of the logical local ID for the specified dimension. More... | |
range< dimensions > | get_physical_local_range () const |
Retrieves the range representing the sizes of the physical local iteration space. More... | |
size_t | get_physical_local_range (int dimension) const |
Retrieves the value of the physical local range for the specified dimension. More... | |
id< dimensions > | get_physical_local_id () const |
Retrieves the id representing the position of the item in the physical local iteration space. More... | |
size_t | get_physical_local_id (int dimension) const |
Retrieves the value of the physical local ID for the specified dimension. More... | |
bool | is_equal (const h_item &rhs) const |
Helper function for calling operator==() More... | |
Friends | |
bool | operator== (const h_item &lhs, const h_item &rhs) |
Equality operator. More... | |
bool | operator!= (const h_item &lhs, const h_item &rhs) |
Non-equality operator. More... | |
Detailed Description
template<int dimensions>
class cl::sycl::h_item< dimensions >
Identifies an instance of a parallel_for_work_item function object executing at each point in a local range passed to a parallel_for_work_item call.
It encapsulates enough information to identify the work-item's local and global items according to the information given to parallel_for_work_group (physical ids) as well as the work-item's logical local items in the flexible range. All returned item objects are offset-less.
- Template Parameters
-
dimensions Number of dimensions of the h_item object
Constructor & Destructor Documentation
◆ h_item()
|
delete |
Not user constructible.
Member Function Documentation
◆ get_global()
|
inline |
◆ get_global_id() [1/2]
|
inline |
◆ get_global_id() [2/2]
|
inline |
◆ get_global_range() [1/2]
|
inline |
◆ get_global_range() [2/2]
|
inline |
◆ get_local()
|
inline |
◆ get_local_id() [1/2]
|
inline |
◆ get_local_id() [2/2]
|
inline |
◆ get_local_range() [1/2]
|
inline |
◆ get_local_range() [2/2]
|
inline |
◆ get_logical_local()
|
inline |
◆ get_logical_local_id() [1/2]
|
inline |
◆ get_logical_local_id() [2/2]
|
inline |
◆ get_logical_local_range() [1/2]
|
inline |
◆ get_logical_local_range() [2/2]
|
inline |
◆ get_physical_local()
|
inline |
◆ get_physical_local_id() [1/2]
|
inline |
◆ get_physical_local_id() [2/2]
|
inline |
◆ get_physical_local_range() [1/2]
|
inline |
◆ get_physical_local_range() [2/2]
|
inline |
◆ is_equal()
|
inline |
Helper function for calling operator==()
- Parameters
-
rhs Object to compare to
- Returns
- True if all member variables are equal to rhs member variables
Friends And Related Function Documentation
◆ operator!=
◆ operator==
The documentation for this class was generated from the following files: