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
这个提交包含在:
1 父节点
8adf3eba1b
当前提交
6f7273fda5
9 个文件已更改
+132
-4
没有与搜索条件相匹配的文件
@@ -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
|
||||
|
||||
在新工单中引用
屏蔽一个用户