[−][src]Function nvml_binding::bindings::nvmlDeviceGetComputeMode
pub unsafe extern "C" fn nvmlDeviceGetComputeMode(
device: nvmlDevice_t,
mode: *mut nvmlComputeMode_t
) -> nvmlReturn_t
Retrieves the current compute mode for the device.
For all products.
See \ref nvmlComputeMode_t for details on allowed compute modes.
@param device The identifier of the target device @param mode Reference in which to return the current compute mode
@return - \ref NVML_SUCCESS if \a mode 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 mode is NULL - \ref NVML_ERROR_NOT_SUPPORTED if the device does not support this feature - \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
@see nvmlDeviceSetComputeMode()