Skip to content

[ET-VK][runtime] Expose raw shader timestamps and dispatch arguments - #24389

Merged
SS-JIA merged 1 commit into
gh/SS-JIA/675/origfrom
gh/SS-JIA/676/orig
Oct 31, 2026
Merged

SS-JIA merged 1 commit into
gh/SS-JIA/675/origfrom
gh/SS-JIA/676/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #24342 by @SS-JIA
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/676/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/676/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/675/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/676/orig
Differential Revision: D128509575
@diff-train-skip-merge

Pull Request resolved: #24342

## Ulterior Motive

Support separate batch timing and per-shader reports in the JSON benchmark.

## Rationale

Expose unscaled 64-bit query ticks with shader/workgroup metadata, allowing callers to apply the device timestamp period without the legacy integer conversion. Add a context toggle to omit per-shader timestamp commands, and expose dispatch argument groups for input and throughput reporting.

```cpp
graph.context()->set_shader_profiling_enabled(false);
// Encode batch timestamp queries separately.
auto ticks = graph.context()->querypool().get_shader_timestamp_ticks();
const auto& args = graph.execute_nodes().front()->args();
```

Profiling remains enabled by default. Existing timestamp-report APIs are retained. Keep independent tests for empty pools, enabled/disabled instrumentation, GPU output, and argument/timestamp metadata under `test/api_abstractions/`.

Authored with Codex (AI).
ghstack-source-id: 461636567
@exported-using-ghexport

Differential Revision: [D128509575](https://our.internmc.facebook.com/intern/diff/D128509575/)
@pytorchbot
pytorchbot requested a review from SS-JIA as a code owner October 31, 2026 16:42
@pytorch-bot

pytorch-bot Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24389

Note: Links to docs will display an error until the docs builds have been completed.

❌ 23 Pending, 6 Unclassified Failures

As of commit 08736b0 with merge base aed328d (image):

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 31, 2026
@SS-JIA
SS-JIA added this pull request to stack #24392 October 31, 2026 17:19
@SS-JIA
SS-JIA merged commit 2944876 into main Oct 31, 2026
236 of 248 checks passed
@SS-JIA
SS-JIA deleted the gh/SS-JIA/676/orig branch October 31, 2026 17:21

This branch was successfully deployed

1 active deployment
cadence — 08736b0c Deployed Oct 31, 2026 by pytorchbot via hifi5s-op-test / hifi5s #35749
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants