From 8bd95a26b4fcd7a492d169a02dd2fabad83ec661 Mon Sep 17 00:00:00 2001 From: Deepak Mewar Date: Mon, 1 Jan 2024 09:25:21 -0500 Subject: [PATCH] amdsmi_cli: Enabled hsmp metric table from CLI Change-Id: I7f9c13255f952136438249f5180dec5586d01bd7 [ROCm/amdsmi commit: c74f01f401300a3bec6bcfe00b36ba903e75fd3c] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index cb830de331..73af73b420 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -1939,12 +1939,12 @@ class AMDSMICommands(): static_dict["metrics_table"]["response"] = "N/A" # Note:- amdsmi_get_metrics_table has been disabled as there is fix needed in the library API and will be # in next version - """try: + try: metrics_table = amdsmi_interface.amdsmi_get_metrics_table(args.cpu) static_dict["metrics_table"]["response"] = metrics_table except amdsmi_exception.AmdSmiLibraryException as e: static_dict["metrics_table"]["response"] = "N/A" - logging.debug("Failed to get metrics table for cpu %s | %s", cpu_id, e.get_error_info())""" + logging.debug("Failed to get metrics table for cpu %s | %s", cpu_id, e.get_error_info()) if (args.socket_energy): static_dict["socket_energy"] = {}