OpenFPM_pdata  3.0.0
Project that contain the implementation of distributed structures
cub::GridBarrierLifetime Class Reference

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

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.

Definition at line 138 of file grid_barrier.cuh.

+ Inheritance diagram for cub::GridBarrierLifetime:

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
 

Constructor & Destructor Documentation

◆ GridBarrierLifetime()

cub::GridBarrierLifetime::GridBarrierLifetime ( )
inline

Constructor

Definition at line 150 of file grid_barrier.cuh.

◆ ~GridBarrierLifetime()

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

Destructor

Definition at line 172 of file grid_barrier.cuh.

Member Function Documentation

◆ HostReset()

cudaError_t cub::GridBarrierLifetime::HostReset ( )
inline

DeviceFrees and resets the progress counters

Definition at line 156 of file grid_barrier.cuh.

◆ Setup()

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)

Definition at line 182 of file grid_barrier.cuh.


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