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

#include <hip_internal.h>

Collaboration diagram for Realm::Hip::ContextSynchronizer:

Public Member Functions

 ContextSynchronizer (GPU *_gpu, int _device_id, CoreReservationSet &crs, int _max_threads)
 
 ~ContextSynchronizer ()
 
void add_fence (GPUWorkFence *fence)
 
void shutdown_threads ()
 
void thread_main ()
 

Protected Attributes

GPUgpu
 
int device_id
 
int max_threads
 
Mutex mutex
 
Mutex::CondVar condvar
 
bool shutdown_flag
 
GPUWorkFence::FenceList fences
 
int total_threads
 
int sleeping_threads
 
int syncing_threads
 
std::vector< Thread * > worker_threads
 
CoreReservationcore_rsrv
 

Constructor & Destructor Documentation

◆ ContextSynchronizer()

Realm::Hip::ContextSynchronizer::ContextSynchronizer ( GPU _gpu,
int  _device_id,
CoreReservationSet crs,
int  _max_threads 
)

◆ ~ContextSynchronizer()

Realm::Hip::ContextSynchronizer::~ContextSynchronizer ( )

Member Function Documentation

◆ add_fence()

void Realm::Hip::ContextSynchronizer::add_fence ( GPUWorkFence fence)

◆ shutdown_threads()

void Realm::Hip::ContextSynchronizer::shutdown_threads ( )

◆ thread_main()

void Realm::Hip::ContextSynchronizer::thread_main ( )

Member Data Documentation

◆ condvar

Mutex::CondVar Realm::Hip::ContextSynchronizer::condvar
protected

◆ core_rsrv

CoreReservation* Realm::Hip::ContextSynchronizer::core_rsrv
protected

◆ device_id

int Realm::Hip::ContextSynchronizer::device_id
protected

◆ fences

GPUWorkFence::FenceList Realm::Hip::ContextSynchronizer::fences
protected

◆ gpu

GPU* Realm::Hip::ContextSynchronizer::gpu
protected

◆ max_threads

int Realm::Hip::ContextSynchronizer::max_threads
protected

◆ mutex

Mutex Realm::Hip::ContextSynchronizer::mutex
protected

◆ shutdown_flag

bool Realm::Hip::ContextSynchronizer::shutdown_flag
protected

◆ sleeping_threads

int Realm::Hip::ContextSynchronizer::sleeping_threads
protected

◆ syncing_threads

int Realm::Hip::ContextSynchronizer::syncing_threads
protected

◆ total_threads

int Realm::Hip::ContextSynchronizer::total_threads
protected

◆ worker_threads

std::vector<Thread *> Realm::Hip::ContextSynchronizer::worker_threads
protected

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