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()