thread_block Class Reference#
cooperative_groups::thread_block Class Reference
  The workgroup (thread-block in CUDA terminology) cooperative group type. More...
#include <amd_hip_cooperative_groups.h>
Inheritance diagram for cooperative_groups::thread_block:
Collaboration diagram for cooperative_groups::thread_block:
| Public Member Functions | |
| dim3 | group_dim () | 
| Returns the group dimensions.  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... | |
| Static Public Member Functions | |
| static dim3 | group_index () | 
| Returns 3-dimensional block index within the grid.  More... | |
| static dim3 | thread_index () | 
| Returns 3-dimensional thread index within the block.  More... | |
| static __hip_uint32_t | thread_rank () | 
| Rank of the calling thread within [0, num_threads() ).  More... | |
| static __hip_uint32_t | num_threads () | 
| static __hip_uint32_t | size () | 
| Total number of threads in the group (alias of num_threads())  More... | |
| static bool | is_valid () | 
| Returns true if the group has not violated any API constraints.  More... | |
| static void | sync () | 
| Synchronizes the threads in the group.  More... | |
| Protected Member Functions | |
| thread_block (__hip_uint32_t size) | |
| thread_group | new_tiled_group (unsigned int tile_size) const | 
|  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 | |
| thread_block | this_thread_block () | 
| User-exposed API interface to construct workgroup cooperative group type object - thread_block.  More... | |
| thread_group | tiled_partition (const thread_group &parent, unsigned int tile_size) | 
| User-exposed API to partition groups.  More... | |
| thread_group | tiled_partition (const thread_block &parent, unsigned int tile_size) | 
| 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 workgroup (thread-block in CUDA terminology) cooperative group type.
Represents an intra-workgroup cooperative group type, where the participating threads within the group are the same threads that participated in the currently executing workgroup. 
- Note
- This function 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