cuda.bindings.nvml.device_get_nvlink_state#
- cuda.bindings.nvml.device_get_nvlink_state(intptr_t device, unsigned int link) int#
Retrieves the state of the device's NvLink for the link specified. :param device: The identifier of the target device. :type device: intptr_t :param link: Specifies the NvLink link to be queried. :type link: unsigned int :returns: ``nvmlEnableState_t`` where NVML_FEATURE_ENABLED indicates that the link is active and NVML_FEATURE_DISABLED indicates it is inactive. :rtype: int .. seealso:: `nvmlDeviceGetNvLinkState`