cuda.bindings.nvml.device_set_fan_speed_v2#
- cuda.bindings.nvml.device_set_fan_speed_v2(
- intptr_t device,
- unsigned int fan,
- unsigned int speed,
Sets the speed of a specified fan.
WARNING: This function changes the fan control policy to manual. It means that YOU have to monitor the temperature and adjust the fan speed accordingly. If you set the fan speed too low you can burn your GPU! Use nvmlDeviceSetDefaultFanSpeed_v2 to restore default control policy. For all cuda-capable discrete products with fans that are Maxwell or Newer. return.
NVML_SUCCESSif the fan speed has been set.NVML_ERROR_UNINITIALIZEDif the library has not been successfully initialized.NVML_ERROR_INVALID_ARGUMENTif the device is not valid, or the speed is outside acceptable ranges, or if the fan index doesn’t reference an actual fan.NVML_ERROR_NOT_SUPPORTEDif the device is older than Maxwell.NVML_ERROR_UNKNOWNif there was an unexpected error.
- Parameters:
device (intptr_t) – The identifier of the target device.
fan (unsigned int) – The index of the fan, starting at zero.
speed (unsigned int) – The target speed of the fan [0-100] in % of max speed.
See also
nvmlDeviceSetFanSpeed_v2