GridBarrierLifetime extends GridBarrier to provide lifetime management of the temporary device storage needed for cooperation. More...
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.
Definition at line 138 of file grid_barrier.cuh.
Public Member Functions | |
GridBarrierLifetime () | |
cudaError_t | HostReset () |
virtual | ~GridBarrierLifetime () |
cudaError_t | Setup (int sweep_grid_size) |
Public Member Functions inherited from cub::GridBarrier | |
GridBarrier () | |
__device__ __forceinline__ void | Sync () const |
Protected Attributes | |
size_t | sync_bytes |
Protected Attributes inherited from cub::GridBarrier | |
SyncFlag * | d_sync |
Additional Inherited Members | |
Protected Types inherited from cub::GridBarrier | |
typedef unsigned int | SyncFlag |
|
inline |
Constructor
Definition at line 150 of file grid_barrier.cuh.
|
inlinevirtual |
Destructor
Definition at line 172 of file grid_barrier.cuh.
|
inline |
DeviceFrees and resets the progress counters
Definition at line 156 of file grid_barrier.cuh.
|
inline |
Sets up the progress counters for the next kernel launch (lazily allocating and initializing them if necessary)
Definition at line 182 of file grid_barrier.cuh.
|
protected |
Definition at line 143 of file grid_barrier.cuh.