From 5f48d2d30db55af5ce1b276da7ece6281c83ef87 Mon Sep 17 00:00:00 2001 From: Nicholas Curtis Date: Wed, 28 Feb 2024 10:57:20 -0500 Subject: [PATCH] fix for improper display of % of peak for instruction mix panel Signed-off-by: Nicholas Curtis [ROCm/rocprofiler-compute commit: c10cc0ede284eff1facf0025dff235bef77b967b] --- projects/rocprofiler-compute/src/utils/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/src/utils/gui.py b/projects/rocprofiler-compute/src/utils/gui.py index 78244b6a55..8008dfbbca 100644 --- a/projects/rocprofiler-compute/src/utils/gui.py +++ b/projects/rocprofiler-compute/src/utils/gui.py @@ -227,10 +227,13 @@ def build_bar_chart(display_df, table_config, barchart_elements, norm_filt): ).update_xaxes(range=[0, 1638]) ) # append second GB/s chart else: + key = 'Avg' + if table_config['id'] in [1101]: + key = 'Pct of Peak' d_figs.append( px.bar( display_df, - x="Avg", + x=key, y="Metric", color="Avg", range_color=[0, 100],