Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::Cuda::GPUEventPool Class Reference
module nullptr

#include <cuda_internal.h>

Collaboration diagram for Realm::Cuda::GPUEventPool:

Public Member Functions

 GPUEventPool (int _batch_size=256)
 
void init_pool (int init_size=0)
 
void empty_pool (void)
 
CUevent get_event (bool external=false)
 
void return_event (CUevent e, bool external=false)
 

Protected Attributes

Mutex mutex
 
int batch_size
 
int current_size
 
int total_size
 
int external_count
 
std::vector< CUevent > available_events
 

Constructor & Destructor Documentation

◆ GPUEventPool()

Realm::Cuda::GPUEventPool::GPUEventPool ( int  _batch_size = 256)

Member Function Documentation

◆ empty_pool()

void Realm::Cuda::GPUEventPool::empty_pool ( void  )

◆ get_event()

CUevent Realm::Cuda::GPUEventPool::get_event ( bool  external = false)

◆ init_pool()

void Realm::Cuda::GPUEventPool::init_pool ( int  init_size = 0)

◆ return_event()

void Realm::Cuda::GPUEventPool::return_event ( CUevent  e,
bool  external = false 
)

Member Data Documentation

◆ available_events

std::vector<CUevent> Realm::Cuda::GPUEventPool::available_events
protected

◆ batch_size

int Realm::Cuda::GPUEventPool::batch_size
protected

◆ current_size

int Realm::Cuda::GPUEventPool::current_size
protected

◆ external_count

int Realm::Cuda::GPUEventPool::external_count
protected

◆ mutex

Mutex Realm::Cuda::GPUEventPool::mutex
protected

◆ total_size

int Realm::Cuda::GPUEventPool::total_size
protected

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