CUB  
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Methods | Protected Members | List of all members
cub::GridBarrierLifetime Class Reference

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.

Inheritance diagram for cub::GridBarrierLifetime:
cub::GridBarrier

Public Methods

 GridBarrierLifetime ()
 
cudaError_t HostReset ()
 
virtual ~GridBarrierLifetime ()
 
cudaError_t Setup (int sweep_grid_size)
 
- Public Methods inherited from cub::GridBarrier
 GridBarrier ()
 
__device__ __forceinline__ void Sync () const
 

Protected Members

size_t sync_bytes
 
- Protected Members inherited from cub::GridBarrier
SyncFlagd_sync
 

Additional Inherited Members

- Protected Types inherited from cub::GridBarrier
typedef unsigned int SyncFlag
 

Constructor & Destructor Documentation

cub::GridBarrierLifetime::GridBarrierLifetime ( )
inline

Constructor

virtual cub::GridBarrierLifetime::~GridBarrierLifetime ( )
inlinevirtual

Destructor

Member Function Documentation

cudaError_t cub::GridBarrierLifetime::HostReset ( )
inline

DeviceFrees and resets the progress counters

cudaError_t cub::GridBarrierLifetime::Setup ( int  sweep_grid_size)
inline

Sets up the progress counters for the next kernel launch (lazily allocating and initializing them if necessary)

Member Data Documentation

size_t cub::GridBarrierLifetime::sync_bytes
protected

The documentation for this class was generated from the following file: