[ET-VK][testing] Add per-shader timing breakdown to benchmark output#17105
[ET-VK][testing] Add per-shader timing breakdown to benchmark output#17105SS-JIA wants to merge 3 commits intogh/SS-JIA/398/basefrom
Conversation
Previously, benchmark results only showed aggregate GPU timing for each test case, making it difficult to identify which specific shaders were executing and how they contributed to the overall runtime. This change adds per-shader timing instrumentation to enable quick identification of performance bottlenecks. Key changes: - Add `ShaderTiming` struct to track individual shader execution times across iterations - Add `collect_per_shader_timing_us()` helper that extracts timing data from the querypool on a per-shader basis (vs the previous aggregate) - Update `BenchmarkResult::print_row()` to display shader names and their individual timings. When multiple shaders participate, each shader's average time is shown on its own line before the summary row - Add string utility helpers (`layout_abbrev`, `storage_type_abbrev`, `repr_str`, `shape_string`) for generating concise test case names - Adjust column widths for better terminal fit Differential Revision: [D91945038](https://our.internmc.facebook.com/intern/diff/D91945038/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17105
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Pending, 1 Unrelated FailureAs of commit 370f2d9 with merge base 477867a ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
…ark output" Previously, benchmark results only showed aggregate GPU timing for each test case, making it difficult to identify which specific shaders were executing and how they contributed to the overall runtime. This change adds per-shader timing instrumentation to enable quick identification of performance bottlenecks. Key changes: - Add `ShaderTiming` struct to track individual shader execution times across iterations - Add `collect_per_shader_timing_us()` helper that extracts timing data from the querypool on a per-shader basis (vs the previous aggregate) - Update `BenchmarkResult::print_row()` to display shader names and their individual timings. When multiple shaders participate, each shader's average time is shown on its own line before the summary row - Add string utility helpers (`layout_abbrev`, `storage_type_abbrev`, `repr_str`, `shape_string`) for generating concise test case names - Adjust column widths for better terminal fit Differential Revision: [D91945038](https://our.internmc.facebook.com/intern/diff/D91945038/) [ghstack-poisoned]
…ark output" Previously, benchmark results only showed aggregate GPU timing for each test case, making it difficult to identify which specific shaders were executing and how they contributed to the overall runtime. This change adds per-shader timing instrumentation to enable quick identification of performance bottlenecks. Key changes: - Add `ShaderTiming` struct to track individual shader execution times across iterations - Add `collect_per_shader_timing_us()` helper that extracts timing data from the querypool on a per-shader basis (vs the previous aggregate) - Update `BenchmarkResult::print_row()` to display shader names and their individual timings. When multiple shaders participate, each shader's average time is shown on its own line before the summary row - Add string utility helpers (`layout_abbrev`, `storage_type_abbrev`, `repr_str`, `shape_string`) for generating concise test case names - Adjust column widths for better terminal fit Differential Revision: [D91945038](https://our.internmc.facebook.com/intern/diff/D91945038/) [ghstack-poisoned]
Stack from ghstack (oldest at bottom):
Previously, benchmark results only showed aggregate GPU timing for each
test case, making it difficult to identify which specific shaders were
executing and how they contributed to the overall runtime. This change
adds per-shader timing instrumentation to enable quick identification
of performance bottlenecks.
Key changes:
ShaderTimingstruct to track individual shader execution timesacross iterations
collect_per_shader_timing_us()helper that extracts timing datafrom the querypool on a per-shader basis (vs the previous aggregate)
BenchmarkResult::print_row()to display shader names andtheir individual timings. When multiple shaders participate, each
shader's average time is shown on its own line before the summary row
layout_abbrev,storage_type_abbrev,repr_str,shape_string) for generating concise test case namesDifferential Revision: D91945038