heimdallr.utilities.nvidia.bindings.nvmlDeviceGetNvLinkCapability

heimdallr.utilities.nvidia.bindings.nvmlDeviceGetNvLinkCapability(device, link, cap)[source]

Retrieve the capability of a specified NvLinklink.

Retrieves the requested capability from the device’s NvLink for the link specified. Please refer to the nvmlNvLinkCapability_t structure for the specific caps that can be queried. The return value should be treated as a boolean.

Args:

device: The identifier of the target device

link: Specifies the NvLink link to be queried (uint)

capability: Specifies the nvmlNvLinkCapability_t to be queried

Returns

A boolean for the queried capability indicating that feature is available :param cap:

Return type

cap_result