TBTK
TBTK::GPUResourceManager Class Reference
Inheritance diagram for TBTK::GPUResourceManager:
TBTK::Communicator

Public Member Functions

int getNumDevices ()
 
int allocateDevice ()
 
void freeDevice (int device)
 
- Public Member Functions inherited from TBTK::Communicator
 Communicator (bool verbose)
 
void setVerbose (bool verbose)
 
bool getVerbose () const
 

Static Public Member Functions

static GPUResourceManagergetInstance ()
 
- Static Public Member Functions inherited from TBTK::Communicator
static void setGlobalVerbose (bool globalVerbose)
 
static bool getGlobalVerbose ()
 

Member Function Documentation

◆ allocateDevice()

int TBTK::GPUResourceManager::allocateDevice ( )

Allocate GPU device.

◆ freeDevice()

void TBTK::GPUResourceManager::freeDevice ( int  device)

Free GPU device.

◆ getInstance()

static GPUResourceManager& TBTK::GPUResourceManager::getInstance ( )
static

Get singleton instance.

◆ getNumDevices()

int TBTK::GPUResourceManager::getNumDevices ( )
inline

Get number of GPU devices.


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