coalesced_group Class Reference#
cooperative_groups::coalesced_group Class Reference
  The coalesced_group cooperative group type. More...
#include <amd_hip_cooperative_groups.h>
Inheritance diagram for cooperative_groups::coalesced_group:
Collaboration diagram for cooperative_groups::coalesced_group:
| Public Member Functions | |
| unsigned int | num_threads () const | 
| unsigned int | size () const | 
| Total number of threads in the group (alias of num_threads())  More... | |
| unsigned int | thread_rank () const | 
| Rank of the calling thread within [0, num_threads() ).  More... | |
| void | sync () const | 
| Synchronizes the threads in the group.  More... | |
| unsigned int | meta_group_rank () const | 
| unsigned int | meta_group_size () const | 
| Returns the number of groups created when the parent group was partitioned.  More... | |
| template<class T > | |
| T | shfl (T var, int srcRank) const | 
| Shuffle operation on group level.  More... | |
| template<class T > | |
| T | shfl_down (T var, unsigned int lane_delta) const | 
| Shuffle down operation on group level.  More... | |
| template<class T > | |
| T | shfl_up (T var, unsigned int lane_delta) const | 
| Shuffle up operation on group level.  More... | |
| unsigned long long | ballot (int pred) const | 
| Ballot function on group level.  More... | |
| int | any (int pred) const | 
| Any function on group level.  More... | |
| int | all (int pred) const | 
| All function on group level.  More... | |
| template<typename T > | |
| unsigned long long | match_any (T value) const | 
| Match any function on group level.  More... | |
| template<typename T > | |
| unsigned long long | match_all (T value, int &pred) const | 
| Match all function on group level.  More... | |
|  Public Member Functions inherited from cooperative_groups::thread_group | |
| __hip_uint32_t | num_threads () const | 
| __hip_uint32_t | size () const | 
| Total number of threads in the group (alias of num_threads())  More... | |
| unsigned int | cg_type () const | 
| Returns the type of the group.  More... | |
| __hip_uint32_t | thread_rank () const | 
| Rank of the calling thread within [0, num_threads() ).  More... | |
| bool | is_valid () const | 
| Returns true if the group has not violated any API constraints.  More... | |
| void | sync () const | 
| Synchronizes the threads in the group.  More... | |
| Protected Member Functions | |
| coalesced_group (lane_mask member_mask) | |
|  Protected Member Functions inherited from cooperative_groups::thread_group | |
| thread_group (internal::group_type type, __hip_uint32_t num_threads=static_cast< __hip_uint64_t >(0), __hip_uint64_t mask=static_cast< __hip_uint64_t >(0)) | |
| Friends | |
| coalesced_group | coalesced_threads () | 
| User-exposed API to create coalesced groups.  More... | |
| thread_group | tiled_partition (const thread_group &parent, unsigned int tile_size) | 
| User-exposed API to partition groups.  More... | |
| coalesced_group | tiled_partition (const coalesced_group &parent, unsigned int tile_size) | 
| coalesced_group | binary_partition (const coalesced_group &cgrp, bool pred) | 
| Binary partition.  More... | |
| template<unsigned int fsize, class fparent > | |
| coalesced_group | binary_partition (const thread_block_tile< fsize, fparent > &tgrp, bool pred) | 
| Additional Inherited Members | |
|  Protected Attributes inherited from cooperative_groups::thread_group | |
| __hip_uint32_t | _type | 
| __hip_uint32_t | _num_threads | 
| Type of the thread_group.  More... | |
| __hip_uint64_t | _mask | 
| Total number of threads in the thread_group.  More... | |
| struct cooperative_groups::thread_group::_coalesced_info | coalesced_info | 
Detailed Description
The coalesced_group cooperative group type.
Represents an active thread group in a wavefront. This group type also supports sub-wave level intrinsics.
- 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