From 04dc2836816b57b7f9733eb97d0419db2ad61d9d Mon Sep 17 00:00:00 2001 From: clore Date: Thu, 23 May 2024 12:44:26 +0000 Subject: [PATCH] fix nvmlDeviceGetMemClkMinMaxVfOffset --- pynvml/nvml.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pynvml/nvml.py b/pynvml/nvml.py index 6174672..e0f6183 100644 --- a/pynvml/nvml.py +++ b/pynvml/nvml.py @@ -4300,11 +4300,13 @@ def nvmlDeviceSetMemClkVfOffset(device, offset): _nvmlCheckReturn(ret) return ret -def nvmlDeviceGetMemClkMinMaxVfOffset(device, minOffset, maxOffset): +def nvmlDeviceGetMemClkMinMaxVfOffset(device): + min_offset = c_uint32() + max_offset = c_uint32() fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset") - 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 ## GPM ## #########