Skip to content

Commit 08dcbcc

Browse files
committed
Fix Fan.control_policy
1 parent 3b80acd commit 08dcbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/system/_fan.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cdef class FanInfo:
9292

9393
For all CUDA-capable discrete products with fans.
9494
"""
95-
return nvml.device_get_fan_control_policy_v2(self._handle, self._fan)
95+
return FanControlPolicy(nvml.device_get_fan_control_policy_v2(self._handle, self._fan))
9696

9797
def set_default_fan_speed(self):
9898
"""

0 commit comments

Comments
 (0)