Skip to content

[ExecuTorch][Vulkan] SDK Integration 5/n: EventTracer - #3961

Closed
liuk22 wants to merge 1 commit into
gh/liuk22/5/basefrom
gh/liuk22/5/head
Closed

liuk22 wants to merge 1 commit into
gh/liuk22/5/basefrom
gh/liuk22/5/head

Conversation

@liuk22

@liuk22 liuk22 commented Jun 12, 2024 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

See design doc.

EventTracer

  • We integrate the SDK's EventTracer flow into VulkanBackend.cpp which is not part of vulkan_graph_runtime.
  • Simply follow the SDK a posteriori logging flow using the durations from QueryPool::generate_et_tracing_data(), at the end of VulkanBackend::execute() inference
  • Compile time gate with ET_EVENT_TRACER_ENABLED in this case because the dependency is not coming from Vulkan delegate itsel

Differential Revision: D57508095

See [design doc](https://docs.google.com/document/d/1KQ0vH0IhZK24sBbym7TYXfYssAgtPjI-htcxraoxEaM/edit).

__EventTracer__
- We integrate the SDK's `EventTracer` flow into `VulkanBackend.cpp` which is not part of `vulkan_graph_runtime`.
- Simply follow the SDK a posteriori logging flow using the durations from `QueryPool::generate_et_tracing_data()`, at the end of `VulkanBackend::execute()` inference
- Compile time gate with `ET_EVENT_TRACER_ENABLED` in this case because the dependency is not coming from Vulkan delegate itsel

Differential Revision: [D57508095](https://our.internmc.facebook.com/intern/diff/D57508095/)

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jun 12, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4cf63ed with merge base 10de8b2 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot Bot added ciflow/periodic module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ labels Jun 12, 2024
@pytorch-bot

pytorch-bot Bot commented Jun 12, 2024

Copy link
Copy Markdown

Warning: Unknown label ciflow/periodic.
Currently recognized labels are

  • ciflow/nightly
  • ciflow/trunk
  • ciflow/binaries
  • ciflow/binaries/all

Please add the new label to .github/pytorch-probot.yml

@facebook-github-bot facebook-github-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 Jun 12, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D57508095

liuk22 added a commit that referenced this pull request Jun 12, 2024
See [design doc](https://docs.google.com/document/d/1KQ0vH0IhZK24sBbym7TYXfYssAgtPjI-htcxraoxEaM/edit).

__EventTracer__
- We integrate the SDK's `EventTracer` flow into `VulkanBackend.cpp` which is not part of `vulkan_graph_runtime`.
- Simply follow the SDK a posteriori logging flow using the durations from `QueryPool::generate_et_tracing_data()`, at the end of `VulkanBackend::execute()` inference
- Compile time gate with `ET_EVENT_TRACER_ENABLED` in this case because the dependency is not coming from Vulkan delegate itsel

Differential Revision: [D57508095](https://our.internmc.facebook.com/intern/diff/D57508095/)

ghstack-source-id: 229964244
Pull Request resolved: #3961
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 8cb13dc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/periodic CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants