cuda.bindings.nvml.device_get_handle_by_serial#

cuda.bindings.nvml.device_get_handle_by_serial(serial) intptr_t#

Acquire the handle for a particular device, based on its board serial number.

For Fermi ™️ or newer fully supported devices. This number corresponds to the value printed directly on the board, and to the value returned by device_get_serial(). [Deprecated]. Starting from NVML 5, this API causes NVML to initialize the target GPU NVML may initialize additional GPUs as it searches for the target GPU.

Parameters:

serial (str) – The board serial number of the target GPU.

Returns:

Reference in which to return the device handle.

Return type:

intptr_t

See also

nvmlDeviceGetHandleBySerial