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 GPUResourceManager & | getInstance () |
Static Public Member Functions inherited from TBTK::Communicator | |
static void | setGlobalVerbose (bool globalVerbose) |
static bool | getGlobalVerbose () |
int TBTK::GPUResourceManager::allocateDevice | ( | ) |
Allocate GPU device.
void TBTK::GPUResourceManager::freeDevice | ( | int | device | ) |
Free GPU device.
|
static |
Get singleton instance.
|
inline |
Get number of GPU devices.