Standalone GUI bugfix (#825)

* Fix barchart elements table ids

* Add HBM bandwidth section to L2 cache report for gfx950

* bugfix for standlone GUI

Co-authored-by: Felix Marty <Felix.Marty@amd.com>
This commit is contained in:
vedithal-amd
2025-07-22 15:31:54 -04:00
gecommit door GitHub
bovenliggende 0fdd186dd5
commit e132b047cd
4 gewijzigde bestanden met toevoegingen van 16 en 5 verwijderingen
+1
Bestand weergeven
@@ -94,6 +94,7 @@ Full documentation for ROCm Compute Profiler is available at [https://rocm.docs.
* Fixed not collecting TCC channel counters in rocprof v3
* Fixed peak FLOPS of F8 I8 F16 and BF16 on MI300
* Fixed not detecting memory clock issue when using amd-smi
* Fix standalone GUI crashing
### Known issues
@@ -36,7 +36,7 @@ from config import HIDDEN_COLUMNS, PROJECT_NAME
from rocprof_compute_analyze.analysis_base import OmniAnalyze_Base
from utils import file_io, parser
from utils.gui import build_bar_chart, build_table_chart
from utils.logger import console_debug, console_error, demarcate
from utils.logger import console_debug, console_error, console_warning, demarcate
class webui_analysis(OmniAnalyze_Base):
@@ -53,7 +53,9 @@ class webui_analysis(OmniAnalyze_Base):
# define different types of bar charts
self.__barchart_elements = {
"instr_mix": [1001, 1002],
"multi_bar": [1604, 1704],
# 1604: L1D - L2 Transactions
# 1705: L2 - Fabric Interface Stalls
"multi_bar": [1604, 1705],
"sol": [1101, 1201, 1301, 1401, 1601, 1701],
# "l2_cache_per_chan": [1802, 1803]
}
@@ -371,7 +373,11 @@ def determine_chart_type(
# Determine chart type:
# a) Barchart
if table_config["id"] in [x for i in barchart_elements.values() for x in i]:
if original_df.empty:
console_warning(
f"The dataframe with id={table_config['id']} is empty! Not displaying it."
)
elif table_config["id"] in [x for i in barchart_elements.values() for x in i]:
d_figs = build_bar_chart(display_df, table_config, barchart_elements, norm_filt)
# Smaller formatting if barchart yeilds several graphs
if (
@@ -40,6 +40,10 @@ Panel Config:
* 32)) / (End_Timestamp - Start_Timestamp)))
unit: GB/s
tips:
HBM Bandwidth:
value: $hbmBandwidth
unit: GB/s
tips:
- metric_table:
id: 1702
+2 -2
Bestand weergeven
@@ -52,7 +52,7 @@ def multi_bar_chart(table_id, display_df):
nested_bar = {"NC": {}, "UC": {}, "RW": {}, "CC": {}}
for index, row in display_df.iterrows():
nested_bar[row["Coherency"]][row["Xfer"]] = row["Avg"]
if table_id == 1704:
if table_id == 1705: # L2 - Fabric Interface Stalls
nested_bar = {"Read": {}, "Write": {}}
for index, row in display_df.iterrows():
nested_bar[row["Transaction"]][row["Type"]] = row["Avg"]
@@ -198,7 +198,7 @@ def build_bar_chart(display_df, table_config, barchart_elements, norm_filt):
# Speed-of-light bar chart
elif table_config["id"] in barchart_elements["sol"]:
display_df["Avg"] = [
x.astype(float) if x != "" else float(0) for x in display_df["Avg"]
float(x) if x != "" else float(0) for x in display_df["Avg"]
]
if table_config["id"] == 1701:
# special layout for L2 Cache SOL