cuda.bindings.nvml.device_get_temperature_threshold#
- cuda.bindings.nvml.device_get_temperature_threshold(
- intptr_t device,
- int threshold_type,
Retrieves the temperature threshold for the GPU with the specified threshold type in degrees C.
For Kepler ™️ or newer fully supported devices. See
nvmlTemperatureThresholds_tfor details on available temperature thresholds. Note: This API is no longer the preferred interface for retrieving the following temperature thresholds on Ada and later architectures: NVML_TEMPERATURE_THRESHOLD_SHUTDOWN, NVML_TEMPERATURE_THRESHOLD_SLOWDOWN, NVML_TEMPERATURE_THRESHOLD_MEM_MAX and NVML_TEMPERATURE_THRESHOLD_GPU_MAX. Support for reading these temperature thresholds for Ada and later architectures would be removed from this API in future releases. Please usenvmlDeviceGetFieldValueswith NVML_FI_DEV_TEMPERATURE_* fields to retrieve temperature thresholds on these architectures.- Parameters:
device (intptr_t) – The identifier of the target device.
threshold_type (TemperatureThresholds) – The type of threshold value queried.
- Returns:
- Reference in which to return the temperature
reading.
- Return type:
unsigned int
See also
nvmlDeviceGetTemperatureThreshold