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:
1 bovenliggende
c3ed6ffbfe
commit
1bbb19c8b7
9 files changed
+132
-4
No files matched your search
@@ -1969,6 +1969,18 @@ class AMDSMICommands():
|
||||
|
||||
if (args.cpu_metrics_table):
|
||||
static_dict["metrics_table"] = {}
|
||||
try:
|
||||
cpu_fam = amdsmi_interface.amdsmi_get_cpu_family()
|
||||
static_dict["metrics_table"]["cpu_family"] = cpu_fam
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
static_dict["metrics_table"]["cpu_family"] = "N/A"
|
||||
logging.debug("Failed to get cpu family | %s", e.get_error_info())
|
||||
try:
|
||||
cpu_mod = amdsmi_interface.amdsmi_get_cpu_model()
|
||||
static_dict["metrics_table"]["cpu_model"] = cpu_mod
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
static_dict["metrics_table"]["cpu_model"] = "N/A"
|
||||
logging.debug("Failed to get cpu model | %s", e.get_error_info())
|
||||
try:
|
||||
metrics_table = amdsmi_interface.amdsmi_get_metrics_table(args.cpu)
|
||||
static_dict["metrics_table"]["response"] = metrics_table
|
||||
|
||||
Reference in new issue
Block a user