From fb6b7065598fa57a42ed1f2e63c67ee2dbf2729d Mon Sep 17 00:00:00 2001 From: Charis Poag Date: Fri, 19 Sep 2025 19:47:28 -0500 Subject: [PATCH] [SWDEV-554860] Fix amd-smi monitor -qt --gpu 0 --csv For process - Dual CSV is required in order to print 4 separate rows. 1. Metric header + data 2. Process header + data Change-Id: Ibb7bfb13fa95a7c43b2e3f9061ada3a6be4aa8cb Signed-off-by: Charis Poag [ROCm/amdsmi commit: 4fd8b88aa5ae46616ccd0f31e7b2c1c9a8846246] --- projects/amdsmi/amdsmi_cli/amdsmi_commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py index 4fe0a6c374..7db577dddb 100644 --- a/projects/amdsmi/amdsmi_cli/amdsmi_commands.py +++ b/projects/amdsmi/amdsmi_cli/amdsmi_commands.py @@ -6126,6 +6126,9 @@ class AMDSMICommands(): self.logger.table_header += 'PCIE_BW'.rjust(12) + # initialize dual_csv_format; applicable to process only + dual_csv_output = False + # Store process list separately if args.process: # Populate initial processes @@ -6365,8 +6368,6 @@ class AMDSMICommands(): # Store typical output for all commands (XCP data will be handled separately, eg. violation status) if not args.violation: self.logger.store_output(args.gpu, 'values', monitor_values) - # intialize dual_csv_format; applicable to process only - dual_csv_output = False # Now handling the single gpu case only if multiple_devices: