From 1c5aa2d4e748771230138fda1d65b1a28efa4be6 Mon Sep 17 00:00:00 2001 From: SakaSitharammurthy Date: Tue, 20 Jan 2026 02:26:59 +0530 Subject: [PATCH] [SWDEV-567099] Updated 'amdsmi list --cpu all' command (#2519) Signed-off-by: Saka, Sitharam Murthy --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index acee11a3f1..ee822e16c6 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -226,6 +226,12 @@ class AMDSMICommands(): # Set args.* to passed in arguments if gpu: args.gpu = gpu + + cpu_attributes = ["cpu"] + for attr in cpu_attributes: + if hasattr(args, 'cpu') and getattr(args, 'cpu'): + print("N/A") + return # Handle No GPU passed if args.gpu == None: