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

#include <hip_internal.h>

Inheritance diagram for Realm::Hip::GPUWorker:
[legend]
Collaboration diagram for Realm::Hip::GPUWorker:
[legend]

Public Member Functions

 GPUWorker (void)
virtual ~GPUWorker (void)
void add_stream (GPUStream *s)
void start_background_thread (Realm::CoreReservationSet &crs, size_t stack_size)
void shutdown_background_thread (void)
bool do_work (TimeLimit work_until)
void thread_main (void)
Public Member Functions inherited from Realm::BackgroundWorkItem
 BackgroundWorkItem (const std::string &_name)
virtual ~BackgroundWorkItem (void)
void add_to_manager (BackgroundWorkManager *_manager, int _numa_domain=-1, long long _min_timeslice_needed=-1)

Protected Types

typedef CircularQueue< GPUStream *, 16 > ActiveStreamQueue

Protected Member Functions

bool process_streams (bool sleep_on_empty)
Protected Member Functions inherited from Realm::BackgroundWorkItem
void make_active (void)

Protected Attributes

Mutex lock
Mutex::CondVar condvar
ActiveStreamQueue active_streams
Realm::CoreReservation * core_rsrv
Realm::Thread * worker_thread
bool thread_sleeping
atomic< bool > worker_shutdown_requested
Protected Attributes inherited from Realm::BackgroundWorkItem
std::string name
BackgroundWorkManager * manager
int numa_domain
long long min_timeslice_needed
unsigned index

Member Typedef Documentation

◆ ActiveStreamQueue

Constructor & Destructor Documentation

◆ GPUWorker()

Realm::Hip::GPUWorker::GPUWorker ( void )

◆ ~GPUWorker()

virtual Realm::Hip::GPUWorker::~GPUWorker ( void )
virtual

Member Function Documentation

◆ add_stream()

void Realm::Hip::GPUWorker::add_stream ( GPUStream * s)

◆ do_work()

bool Realm::Hip::GPUWorker::do_work ( TimeLimit work_until)
virtual

◆ process_streams()

bool Realm::Hip::GPUWorker::process_streams ( bool sleep_on_empty)
protected

◆ shutdown_background_thread()

void Realm::Hip::GPUWorker::shutdown_background_thread ( void )

◆ start_background_thread()

void Realm::Hip::GPUWorker::start_background_thread ( Realm::CoreReservationSet & crs,
size_t stack_size )

◆ thread_main()

void Realm::Hip::GPUWorker::thread_main ( void )

Member Data Documentation

◆ active_streams

ActiveStreamQueue Realm::Hip::GPUWorker::active_streams
protected

◆ condvar

Mutex::CondVar Realm::Hip::GPUWorker::condvar
protected

◆ core_rsrv

Realm::CoreReservation* Realm::Hip::GPUWorker::core_rsrv
protected

◆ lock

Mutex Realm::Hip::GPUWorker::lock
protected

◆ thread_sleeping

bool Realm::Hip::GPUWorker::thread_sleeping
protected

◆ worker_shutdown_requested

atomic<bool> Realm::Hip::GPUWorker::worker_shutdown_requested
protected

◆ worker_thread

Realm::Thread* Realm::Hip::GPUWorker::worker_thread
protected

The documentation for this class was generated from the following file:
  • /home/runner/work/realm/realm/realm-src/src/realm/hip/hip_internal.h