|
Mila
Deep Neural Network Library
|
CUDA device registrar for device-agnostic registration. More...
Static Public Member Functions | |
| static int | getDeviceCount () |
| Gets the number of available CUDA devices. | |
| static void | registerDevices () |
| Register CUDA support with the DeviceRegistry. | |
CUDA device registrar for device-agnostic registration.
Encapsulates CUDA-specific logic for device discovery and registration, providing a clean static interface while handling CUDA runtime API interactions internally.
|
inlinestatic |
Gets the number of available CUDA devices.
|
inlinestatic |
Register CUDA support with the DeviceRegistry.
Registers discovered CUDA devices with the global DeviceRegistry. If no devices are present, a warning is emitted and registration is skipped.