cuda.bindings.nvml.device_get_handle_by_uuidv#
- cuda.bindings.nvml.device_get_handle_by_uuidv(int type, bytes uuid) intptr_t#
Acquire the handle for a particular device, based on its globally unique immutable UUID (in either ASCII or binary format) associated with each device. See
nvmlUUID_v1_tfor more information on the UUID struct. The caller must set the appropriate version prior to calling this API.- Parameters:
type (UUIDType) – The format of the UUID being provided (ASCII or binary).
uuid (intptr_t) – The UUID of the target GPU or MIG instance.
- Returns:
Reference in which to return the device handle or MIG device handle.
- Return type:
intptr_t
See also
nvmlDeviceGetHandleByUUIDV