◆ findDevice() [1/2]
Device & Devices::findDevice |
( |
| ) |
|
|
static |
- Returns
- returns a Device with the first CUDA capable device it finds
◆ findDevice() [2/2]
Device & Devices::findDevice |
( |
std::string |
name | ) |
|
|
static |
- Returns
- returns a Device if a CUDA capable device with the identifier is available
- Parameters
-
name | Name of the cuda device, e.g.'Tesla K20c' |
◆ findDeviceByUUID()
Device & Devices::findDeviceByUUID |
( |
std::string |
uuid | ) |
|
|
static |
- Returns
- returns a Device if a CUDA capable device with the passed 16-byte UUID as hexadecimal string
- Parameters
-
uuid | UUID of the cuda device |
◆ findDevices() [1/2]
std::vector< Device > & Devices::findDevices |
( |
| ) |
|
|
static |
- Returns
- vector with all CUDA-capable devices
◆ findDevices() [2/2]
std::vector< Device * > Devices::findDevices |
( |
std::function< bool(Device &)> |
con | ) |
|
|
static |
filters the devices satisfying passed condition
- Parameters
-
con | condition for devices e.g.'[](Device& d){return d.total_memory() >= 1024;}' |
- Returns
- list of devices satisfying passed condition
The documentation for this class was generated from the following files: