[][src]Function nvml_binding::bindings::nvmlDeviceGetMaxClockInfo

pub unsafe extern "C" fn nvmlDeviceGetMaxClockInfo(
    device: nvmlDevice_t,
    type_: nvmlClockType_t,
    clock: *mut c_uint
) -> nvmlReturn_t

Retrieves the maximum clock speeds for the device.

For Fermi &tm; or newer fully supported devices.

See \ref nvmlClockType_t for details on available clock information.

\note On GPUs from Fermi family current P0 clocks (reported by \ref nvmlDeviceGetClockInfo) can differ from max clocks by few MHz.

@param device The identifier of the target device @param type Identify which clock domain to query @param clock Reference in which to return the clock speed in MHz

@return - \ref NVML_SUCCESS if \a clock has been set - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a device is invalid or \a clock is NULL - \ref NVML_ERROR_NOT_SUPPORTED if the device cannot report the specified clock - \ref NVML_ERROR_GPU_IS_LOST if the target GPU has fallen off the bus or is otherwise inaccessible - \ref NVML_ERROR_UNKNOWN on any unexpected error