Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,9 @@ def get_sysinfo_path(data_path: str) -> Optional[str]:
)
w.roofline_peaks = pd.DataFrame()
else:
console_error(
console_log(
"roofline",
f"Roofline analysis skipped: {error_msg}",
exit=False,
)
w.roofline_peaks = pd.DataFrame()
else:
Expand Down
20 changes: 8 additions & 12 deletions projects/rocprofiler-compute/src/utils/tty.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,12 @@ def show_all(
if not csv_dir.exists():
csv_dir.mkdir()

# Check for valid roofline data once (used to skip roofline tables in the loop)
has_valid_roofline = any(
hasattr(workload, "roofline_peaks") and not workload.roofline_peaks.empty
for workload in runs.values()
)

for panel_id, panel in arch_configs.panel_configs.items():
# Skip panels that don't support baseline comparison
if len(args.path) > 1 and panel_id in config.HIDDEN_SECTIONS:
Expand All @@ -509,18 +515,8 @@ def show_all(
for data_source in panel["data source"]:
for table_type, table_config in data_source.items():
# Skip roofline tables (401, 402) if roofline data is invalid
if table_config["id"] in [401, 402]:
has_valid_roofline = any(
hasattr(workload, "roofline_peaks")
and not workload.roofline_peaks.empty
for workload in runs.values()
)
if not has_valid_roofline:
console_warning(
Comment thread
vedithal-amd marked this conversation as resolved.
Resolved
f"Not showing Roofline table {table_config['id']} "
"due to invalid roofline data."
)
continue
if table_config["id"] in [401, 402] and not has_valid_roofline:
continue

# Block-filter logic:
# - If analysis used --filter-metrics, ignore profiling block filters
Expand Down
Loading