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

#include <hip_internal.h>

Collaboration diagram for Realm::Hip::GPUEventPool:

Public Member Functions

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

Protected Attributes

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

Constructor & Destructor Documentation

◆ GPUEventPool()

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

Member Function Documentation

◆ empty_pool()

void Realm::Hip::GPUEventPool::empty_pool ( void  )

◆ get_event()

hipEvent_t Realm::Hip::GPUEventPool::get_event ( bool  external = false)

◆ init_pool()

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

◆ return_event()

void Realm::Hip::GPUEventPool::return_event ( hipEvent_t  e,
bool  external = false 
)

Member Data Documentation

◆ available_events

std::vector<hipEvent_t> Realm::Hip::GPUEventPool::available_events
protected

◆ batch_size

int Realm::Hip::GPUEventPool::batch_size
protected

◆ current_size

int Realm::Hip::GPUEventPool::current_size
protected

◆ external_count

int Realm::Hip::GPUEventPool::external_count
protected

◆ mutex

Mutex Realm::Hip::GPUEventPool::mutex
protected

◆ total_size

int Realm::Hip::GPUEventPool::total_size
protected

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