| 377 | int getActiveDeviceId() { return tlocalActiveDeviceId(); } |
| 378 | |
| 379 | int getDeviceNativeId(int device) { |
| 380 | if (device < |
| 381 | static_cast<int>(DeviceManager::getInstance().cuDevices.size())) { |
| 382 | return DeviceManager::getInstance().cuDevices[device].nativeId; |
| 383 | } |
| 384 | return -1; |
| 385 | } |
| 386 | |
| 387 | int getDeviceIdFromNativeId(int nativeId) { |
| 388 | DeviceManager &mngr = DeviceManager::getInstance(); |
no outgoing calls
no test coverage detected