[SWDEV-567099] Updated 'amdsmi list --cpu all' command (#2519)

Signed-off-by: Saka, Sitharam Murthy <SitharamMurthy.Saka@amd.com>
This commit is contained in:
SakaSitharammurthy
2026-01-20 02:26:59 +05:30
committed by GitHub
parent 0254181f42
commit 1c5aa2d4e7
@@ -226,6 +226,12 @@ class AMDSMICommands():
# Set args.* to passed in arguments # Set args.* to passed in arguments
if gpu: if gpu:
args.gpu = 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 # Handle No GPU passed
if args.gpu == None: if args.gpu == None: