Merge commit 'def9a3c92d304b1debc20ba3ea0c40524a1b7420' into develop
This commit is contained in:
@@ -50,7 +50,7 @@ except ImportError:
|
||||
# Minor version - Increment when adding a new feature, set to 0 when major is incremented
|
||||
# Patch version - Increment when adding a fix, set to 0 when minor is incremented
|
||||
# Hash version - Shortened commit hash. Print here and not with lib for consistency with amd-smi
|
||||
SMI_MAJ = 3
|
||||
SMI_MAJ = 4
|
||||
SMI_MIN = 0
|
||||
SMI_PAT = 0
|
||||
# SMI_HASH is provided by rsmiBindings
|
||||
@@ -2827,13 +2827,20 @@ def showRange(deviceList, rangeType):
|
||||
return
|
||||
printLogSpacer(' Show Valid %s Range ' % (rangeType))
|
||||
odvf = rsmi_od_volt_freq_data_t()
|
||||
uint64_max = UIntegerTypes.UINT64_T
|
||||
for device in deviceList:
|
||||
ret = rocmsmi.rsmi_dev_od_volt_info_get(device, byref(odvf))
|
||||
if rsmi_ret_ok(ret, device, 'get_od_volt', silent=False):
|
||||
if rangeType == 'sclk':
|
||||
if odvf.curr_sclk_range.lower_bound == uint64_max or odvf.curr_sclk_range.upper_bound == uint64_max:
|
||||
printLog(device, 'Unable to display %s range' % (rangeType), None)
|
||||
continue
|
||||
printLog(device, 'Valid sclk range: %sMhz - %sMhz' % (
|
||||
int(odvf.curr_sclk_range.lower_bound / 1000000), int(odvf.curr_sclk_range.upper_bound / 1000000)), None)
|
||||
if rangeType == 'mclk':
|
||||
if odvf.curr_mclk_range.lower_bound == uint64_max or odvf.curr_mclk_range.upper_bound == uint64_max:
|
||||
printLog(device, 'Unable to display %s range' % (rangeType), None)
|
||||
continue
|
||||
printLog(device, 'Valid mclk range: %sMhz - %sMhz' % (
|
||||
int(odvf.curr_mclk_range.lower_bound / 1000000), int(odvf.curr_mclk_range.upper_bound / 1000000)), None)
|
||||
if rangeType == 'voltage':
|
||||
|
||||
Reference in New Issue
Block a user