fix nvmlDeviceGetMemClkMinMaxVfOffset
This commit is contained in:
parent
19561d95ce
commit
04dc283681
|
@ -4300,11 +4300,13 @@ def nvmlDeviceSetMemClkVfOffset(device, offset):
|
||||||
_nvmlCheckReturn(ret)
|
_nvmlCheckReturn(ret)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def nvmlDeviceGetMemClkMinMaxVfOffset(device, minOffset, maxOffset):
|
def nvmlDeviceGetMemClkMinMaxVfOffset(device):
|
||||||
|
min_offset = c_uint32()
|
||||||
|
max_offset = c_uint32()
|
||||||
fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset")
|
fn = _nvmlGetFunctionPointer("nvmlDeviceGetMemClkMinMaxVfOffset")
|
||||||
ret = fn(device, minOffset, maxOffset)
|
ret = fn(device, byref(min_offset), byref(max_offset))
|
||||||
_nvmlCheckReturn(ret)
|
_nvmlCheckReturn(ret)
|
||||||
return ret
|
return min_offset.value, max_offset.value
|
||||||
|
|
||||||
## GPM ##
|
## GPM ##
|
||||||
#########
|
#########
|
||||||
|
|
Loading…
Reference in New Issue