[][src]Function nvml_binding::bindings::nvmlGetBlacklistDeviceInfoByIndex

pub unsafe extern "C" fn nvmlGetBlacklistDeviceInfoByIndex(
    index: c_uint,
    info: *mut nvmlBlacklistDeviceInfo_t
) -> nvmlReturn_t

Acquire the device information for a blacklisted device, based on its index.

For all products.

Valid indices are derived from the \a deviceCount returned by \ref nvmlGetBlacklistDeviceCount(). For example, if \a deviceCount is 2 the valid indices are 0 and 1, corresponding to GPU 0 and GPU 1.

@param index The index of the target GPU, >= 0 and < \a deviceCount @param info Reference in which to return the device information

@return - \ref NVML_SUCCESS if \a device has been set - \ref NVML_ERROR_INVALID_ARGUMENT if \a index is invalid or \a info is NULL

@see nvmlGetBlacklistDeviceCount