cl::sycl::group< Dimensions > Class Template Reference
The cl::sycl::group object is a container for all information about a work group. More...
#include <base.h>
Public Member Functions | |
group (const detail::group_base &gb) | |
Conversion constructor from group<Dimensions> to group_base This constructor is used in all of the kernel invocation APIs that use the group class. More... | |
id< Dimensions > | get () const |
Get Group ID. More... | |
COMPUTECPP_DEPRECATED_BY_SYCL_VER (201703, "Use group::get_id(unsigned) instead.") size_t get(unsigned int dimension) const | |
Get Group ID. More... | |
id< Dimensions > | get_id () const |
Get Group ID. More... | |
size_t | get_id (unsigned int dimension) const |
Get Group ID. More... | |
range< Dimensions > | get_global_range () const |
Get the global range for all dimensions. More... | |
size_t | get_global_range (unsigned int dimension) const |
Returns the global range in a specified dimension. More... | |
range< Dimensions > | get_local_range () const |
Get the local range for all dimensions. More... | |
size_t | get_local_range (unsigned int dimension) const |
Returns the local range in a specified dimension. More... | |
range< Dimensions > | get_group_range () const |
the group range for all dimensions More... | |
size_t | get_group_range (unsigned int dimension) const |
Returns the group range in a specified dimension. More... | |
size_t | operator[] (size_t dim) const |
Get the value for the given dimension. More... | |
template<typename... eventTN> | |
void | wait_for (eventTN... events) const |
Waits on each given device_event. More... | |
template<typename workItemFunctionT > | |
void | parallel_for_work_item (const workItemFunctionT &func) const |
Inner loop of parallel_for_work_group. More... | |
template<typename workItemFunctionT > | |
void | parallel_for_work_item (range< Dimensions > flexibleRange_, const workItemFunctionT &func) const |
Inner loop of parallel_for_work_group. More... | |
template<typename dataT > | |
COMPUTECPP_PRIVATE device_event | async_work_group_copy (local_ptr< dataT > dest, global_ptr< dataT > src, size_t numElements) const |
Asynchronous work group copy from a global pointer to local. More... | |
template<typename dataT > | |
COMPUTECPP_PRIVATE device_event | async_work_group_copy (global_ptr< dataT > dest, local_ptr< dataT > src, size_t numElements) const |
Asynchronous work group copy from a local pointer to global. More... | |
template<typename dataT > | |
COMPUTECPP_PRIVATE device_event | async_work_group_copy (local_ptr< dataT > dest, global_ptr< dataT > src, size_t numElements, size_t srcStride) const |
Asynchronous work group copy from a global pointer to local. More... | |
template<typename dataT > | |
COMPUTECPP_PRIVATE device_event | async_work_group_copy (global_ptr< dataT > dest, local_ptr< dataT > src, size_t numElements, size_t destStride) const |
Asynchronous work group copy from a local pointer to global. More... | |
Protected Member Functions | |
bool | is_zero_id () const |
Checks if the ID of this group is all zeros. More... | |
Friends | |
bool | operator== (const group &lhs, const group &rhs) |
Equality operator. More... | |
bool | operator!= (const group &lhs, const group &rhs) |
Non-equality operator. More... | |
Detailed Description
template<int Dimensions = 1>
class cl::sycl::group< Dimensions >
The cl::sycl::group object is a container for all information about a work group.
Forward declaration for sycl::group class.
The cl::sycl::group object is used within the parallel_for_work_group function. The cl::sycl::group object can return information about the local and global sizes of an enqueued nd-range as well as the number of groups and the current group id.
Constructor & Destructor Documentation
◆ group()
|
inline |
Member Function Documentation
◆ async_work_group_copy() [1/4]
|
inline |
◆ async_work_group_copy() [2/4]
|
inline |
◆ async_work_group_copy() [3/4]
|
inline |
Asynchronous work group copy from a global pointer to local.
- Template Parameters
-
dataT Data type of the pointer
- Parameters
-
dest Pointer to the destination in local memory src Pointer to the source in global memory numElements Number of elements to copy destStride Stride in the origin
◆ async_work_group_copy() [4/4]
|
inline |
Asynchronous work group copy from a local pointer to global.
- Template Parameters
-
dataT Data type of the pointer
- Parameters
-
dest Pointer to the destination in global memory src Pointer to the source in local memory numElements Number of elements to copy destStride Stride in the destination
◆ COMPUTECPP_DEPRECATED_BY_SYCL_VER()
|
inline |
Get Group ID.
- Parameters
-
the dimension of the nd_range we should return the group ID for
- Returns
- the group id for that dimension
- Deprecated:
- Use get_id instead
◆ get()
|
inline |
◆ get_global_range() [1/2]
|
inline |
◆ get_global_range() [2/2]
|
inline |
◆ get_group_range() [1/2]
|
inline |
◆ get_group_range() [2/2]
|
inline |
◆ get_id() [1/2]
|
inline |
◆ get_id() [2/2]
|
inline |
◆ get_local_range() [1/2]
|
inline |
◆ get_local_range() [2/2]
|
inline |
◆ is_zero_id()
|
inlineprotected |
◆ operator[]()
|
inline |
◆ parallel_for_work_item() [1/2]
|
inline |
◆ parallel_for_work_item() [2/2]
|
inline |
◆ wait_for()
|
inline |
Waits on each given device_event.
- Template Parameters
-
eventTN Pack of device_event types
- Parameters
-
events Pack of device_events
Friends And Related Function Documentation
◆ operator!=
◆ operator==
The documentation for this class was generated from the following files: