grid_group Class Reference#
cooperative_groups::grid_group Class Reference
The grid cooperative group type. More...
#include <amd_hip_cooperative_groups.h>
Inheritance diagram for cooperative_groups::grid_group:
Collaboration diagram for cooperative_groups::grid_group:
Public Member Functions | |
| uint32_t | thread_rank () const |
| Rank of the calling thread within [0, size() ). | |
| bool | is_valid () const |
| Returns true if the group has not violated any API constraints. | |
| void | sync () const |
| Synchronizes the threads in the group. | |
| dim3 | group_dim () const |
Public Member Functions inherited from cooperative_groups::thread_group | |
| uint32_t | size () const |
| unsigned int | cg_type () const |
| Returns the type of the group. | |
| uint32_t | thread_rank () const |
| Rank of the calling thread within [0, size() ). | |
| bool | is_valid () const |
| Returns true if the group has not violated any API constraints. | |
| void | sync () const |
| Synchronizes the threads in the group. | |
Protected Member Functions | |
| grid_group (uint32_t size) | |
| Construct grid thread group (through the API this_grid()) | |
Protected Member Functions inherited from cooperative_groups::thread_group | |
| thread_group (internal::group_type type, uint32_t size=static_cast< uint64_t >(0), uint64_t mask=static_cast< uint64_t >(0)) | |
Friends | |
| grid_group | this_grid () |
User-exposed API interface to construct grid cooperative group type object - grid_group. | |
Additional Inherited Members | |
Protected Attributes inherited from cooperative_groups::thread_group | |
| uint32_t | _type |
| uint32_t | _size |
| Type of the thread_group. | |
| uint64_t | _mask |
| Total number of threads in the tread_group. | |
| struct cooperative_groups::thread_group::_coalesced_info | coalesced_info |
Detailed Description
The grid cooperative group type.
Represents an inter-workgroup cooperative group type, where the participating threads within the group spans across multiple workgroups running the (same) kernel on the same device.
- Note
- This is implemented on Linux and is under development on Microsoft Windows.
The documentation for this class was generated from the following file:
- clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h
Public Member Functions inherited from