|
Mila 0.13.48
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. | |
Static Private Member Functions | |
| static bool | isDeviceUsable (int deviceId) |
| Checks if a specific CUDA device is usable for computation. | |
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.

|
inlinestaticprivate |
Checks if a specific CUDA device is usable for computation.
Ensures device meets minimal compute capability and memory requirements and that it can be selected via the CUDA runtime.

|
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.

