[][src]Function nvml_binding::bindings::nvmlDeviceGetNvLinkVersion

pub unsafe extern "C" fn nvmlDeviceGetNvLinkVersion(
    device: nvmlDevice_t,
    link: c_uint,
    version: *mut c_uint
) -> nvmlReturn_t

Retrieves the version of the device's NvLink for the link specified

For Pascal &tm; or newer fully supported devices.

@param device The identifier of the target device @param link Specifies the NvLink link to be queried @param version Requested NvLink version

@return - \ref NVML_SUCCESS if \a version has been set - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a device or \a link is invalid or \a version is NULL - \ref NVML_ERROR_NOT_SUPPORTED if the device doesn't support this feature - \ref NVML_ERROR_UNKNOWN on any unexpected error