From 050d78cfd972a622a2a4029ae1bad3fc2152866c Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Fri, 4 Mar 2022 11:09:27 +0000 Subject: [PATCH] SWDEV-326120: Fix for Staging 'merge_traces script from rocprof fails to include GPU / HSA / ROCTX activity in merged trace' change was missing tuple addition to the second for loop causing issues on gfx908 and gfx906 | change NO: 628475 Change-Id: Ic0b6140d4372eb109fdf7bdc8d58c0d84239196d [ROCm/rocprofiler commit: 7a9692766deaebfc997456f1a1d7bba013072666] --- projects/rocprofiler/bin/tblextr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocprofiler/bin/tblextr.py b/projects/rocprofiler/bin/tblextr.py index 6677af3e98..cc8ed1ae78 100755 --- a/projects/rocprofiler/bin/tblextr.py +++ b/projects/rocprofiler/bin/tblextr.py @@ -221,8 +221,8 @@ def dump_csv(file_name): with open(file_name, mode='w') as fd: fd.write(','.join(var_list) + '\n'); - for ind in keys: - entry = var_table[ind] + for pid, ind in keys: + entry = var_table[(pid, ind)] dispatch_number = entry['Index'] if ind != dispatch_number: fatal("Dispatch #" + ind + " index mismatch (" + dispatch_number + ")\n") val_list = [entry[var] for var in var_list]