Added amdsmi cpu family & cpu model
- Updated header and source files
- Updated python interface
- Generated python wrapper for updated header
- Updated the CLI to have cpu family & cpu model
as part of metric table
Change-Id: Iea440251797270d5d29ffe883b0ad6db790be658
[ROCm/amdsmi commit: 6f7273fda5]
This commit is contained in:
committato da
Maisam Arif
parent
c3ed6ffbfe
commit
1bbb19c8b7
@@ -1496,6 +1496,20 @@ def amdsmi_first_online_core_on_cpu_socket(
|
||||
|
||||
return pcore_ind.value
|
||||
|
||||
def amdsmi_get_cpu_family():
|
||||
family = ctypes.c_uint32()
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_get_cpu_family(ctypes.byref(family))
|
||||
)
|
||||
return family.value
|
||||
|
||||
def amdsmi_get_cpu_model():
|
||||
model = ctypes.c_uint32()
|
||||
_check_res(
|
||||
amdsmi_wrapper.amdsmi_get_cpu_model(ctypes.byref(model))
|
||||
)
|
||||
return model.value
|
||||
|
||||
def amdsmi_init(flag=AmdSmiInitFlags.INIT_AMD_GPUS):
|
||||
if not isinstance(flag, AmdSmiInitFlags):
|
||||
raise AmdSmiParameterException(flag, AmdSmiInitFlags)
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user