Class GridBarrierLifetime¶
Defined in File grid_barrier.hpp
Inheritance Relationships¶
Base Types¶
public hipcub::GridBarrier(Class GridBarrier)public GridBarrierLifetime
Class Documentation¶
-
class hipcub::GridBarrierLifetime : public hipcub::GridBarrier, public GridBarrierLifetime¶
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.
Public Functions
-
inline hipError_t HostReset()¶
-
inline hipError_t Setup(int sweep_grid_size)¶
-
inline GridBarrierLifetime()¶
Constructor
-
inline hipError_t HostReset()
DeviceFrees and resets the progress counters
-
inline virtual ~GridBarrierLifetime()¶
Destructor
-
inline hipError_t Setup(int sweep_grid_size)
Sets up the progress counters for the next kernel launch (lazily allocating and initializing them if necessary)
-
__device__ __forceinline__ inline void Sync() const¶
Protected Types
-
typedef unsigned int SyncFlag¶
Synchronize.
-
inline hipError_t HostReset()¶