GridBarrierLifetime Class Reference

GridBarrierLifetime Class Reference#

hipCUB: hipcub::GridBarrierLifetime Class Reference

GridBarrierLifetime extends GridBarrier to provide lifetime management of the temporary device storage needed for cooperation. More...

#include <grid_barrier.hpp>

Inheritance diagram for hipcub::GridBarrierLifetime:
hipcub::GridBarrier

Public Member Functions

hipError_t HostReset ()
 
hipError_t Setup (int sweep_grid_size)
 
 GridBarrierLifetime ()
 
hipError_t HostReset ()
 
virtual ~GridBarrierLifetime ()
 
hipError_t Setup (int sweep_grid_size)
 
__device__ __forceinline__ void Sync () const
 

Protected Types

typedef unsigned int SyncFlag
 Synchronize.
 

Protected Attributes

size_t sync_bytes
 
SyncFlagd_sync
 

Detailed Description

GridBarrierLifetime extends GridBarrier to provide lifetime management of the temporary device storage needed for cooperation.

Uses RAII for lifetime, i.e., device resources are reclaimed when the destructor is called.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipcub/checkouts/docs-5.6.0/hipcub/include/hipcub/backend/cub/grid/grid_barrier.hpp