cuda.bindings.nvml.unit_get_handle_by_index#
- cuda.bindings.nvml.unit_get_handle_by_index(unsigned int index) intptr_t#
Acquire the handle for a particular unit, based on its index.
For S-class products. Valid indices are derived from the
unitCountreturned byunit_get_count(). For example, ifunitCountis 2 the valid indices are 0 and 1, corresponding to UNIT 0 and UNIT 1. The order in which NVML enumerates units has no guarantees of consistency between reboots.- Parameters:
index (unsigned int) – The index of the target unit, >= 0 and <
unitCount.- Returns:
Reference in which to return the unit handle.
- Return type:
intptr_t
See also
nvmlUnitGetHandleByIndex