thread_group Class Reference

thread_group Class Reference#

HIP Runtime API Reference: cooperative_groups::thread_group Class Reference
cooperative_groups::thread_group Class Reference

The base type of all cooperative group types. More...

#include <amd_hip_cooperative_groups.h>

Inheritance diagram for cooperative_groups::thread_group:
[legend]
Collaboration diagram for cooperative_groups::thread_group:
[legend]

Data Structures

struct  _coalesced_info
 
struct  _tiled_info
 

Public Member Functions

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

 thread_group (internal::group_type type, uint32_t size=static_cast< uint64_t >(0), uint64_t mask=static_cast< uint64_t >(0))
 

Protected Attributes

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
 

Friends

class thread_block
 
thread_group this_thread ()
 
thread_group tiled_partition (const thread_group &parent, unsigned int tile_size)
 User-exposed API to partition groups.
 

Detailed Description

The base type of all cooperative group types.

Holds the key properties of a constructed cooperative group types object, like the group type, its size, etc.

Note
Cooperative groups feature is implemented on Linux, under development on Microsoft Windows.

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/clr/hipamd/include/hip/amd_detail/amd_hip_cooperative_groups.h