cuda.bindings.nvml.device_get_uuid#
- cuda.bindings.nvml.device_get_uuid(intptr_t device) str#
Retrieves the globally unique immutable UUID associated with this device, as a 5 part hexadecimal string, that augments the immutable, board serial identifier.
For all products. The UUID is a globally unique identifier. It is the only available identifier for pre-Fermi-architecture products. It does NOT correspond to any identifier printed on the board. It will not exceed 96 characters in length (including the NULL terminator). See nvmlConstants::NVML_DEVICE_UUID_V2_BUFFER_SIZE. When used with MIG device handles the API returns globally unique UUIDs which can be used to identify MIG devices across both GPU and MIG devices. UUIDs are immutable for the lifetime of a MIG device.
- Parameters:
device (intptr_t) – The identifier of the target device.
- Returns:
Reference in which to return the GPU UUID.
- Return type:
char
See also
nvmlDeviceGetUUID