From c36dca841bbe60aa8ce9f9a099f292aafc30f770 Mon Sep 17 00:00:00 2001 From: clore Date: Tue, 30 Apr 2024 13:35:13 +0000 Subject: [PATCH] fix nvmlDeviceGetGpcClkMinMaxVfOffset --- pynvml/nvml.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pynvml/nvml.py b/pynvml/nvml.py index d09894b..6174672 100644 --- a/pynvml/nvml.py +++ b/pynvml/nvml.py @@ -4278,11 +4278,13 @@ def nvmlDeviceSetGpcClkVfOffset(device, offset): _nvmlCheckReturn(ret) return ret -def nvmlDeviceGetGpcClkMinMaxVfOffset(device, minOffset, maxOffset): +def nvmlDeviceGetGpcClkMinMaxVfOffset(device): + min_offset = c_uint32() + max_offset = c_uint32() fn = _nvmlGetFunctionPointer("nvmlDeviceGetGpcClkMinMaxVfOffset") - ret = fn(device, minOffset, maxOffset) + ret = fn(device, byref(min_offset), byref(max_offset)) _nvmlCheckReturn(ret) - return ret + return min_offset.value, max_offset.value def nvmlDeviceGetMemClkVfOffset(device): offset = c_int32()