From d906f1891fdd043b5cbdc8ad1c884df76332f7d7 Mon Sep 17 00:00:00 2001 From: khashaik Date: Thu, 18 Apr 2024 07:03:56 +0000 Subject: [PATCH] amd-smi_cli: Fix issue for set core boost limit in CPU Change-Id: I1af4e9d14b1667c5279fcf02cebb4103a92e162c [ROCm/amdsmi commit: aad42d414a7ec9c81f914e9d8f8a1daec30c16e1] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index 9a4c468686..7d157ee969 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -3621,7 +3621,6 @@ class AMDSMICommands(): if getattr(args, attr) is not None: gpu_args_enabled = True break - # Check if a CPU argument has been set cpu_args_enabled = False cpu_attributes = ["cpu_pwr_limit", "cpu_xgmi_link_width", "cpu_lclk_dpm_level", "cpu_pwr_eff_mode", @@ -3629,7 +3628,7 @@ class AMDSMICommands(): "cpu_enable_apb", "cpu_disable_apb", "soc_boost_limit"] for attr in cpu_attributes: if hasattr(args, attr): - if getattr(args, attr) is not None: + if getattr(args, attr) not in [None, False]: cpu_args_enabled = True break