Skip to content

[ET-VK] Move files using the Vulkan API to vk_api/ #4125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

jorgep31415
Copy link
Contributor

@jorgep31415 jorgep31415 commented Jul 2, 2024

Stack from ghstack (oldest at bottom):

and move from namespace api to vkapi. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:

  1. namespace vkcompute and graph/: for operator computation implementation and scheduling.
  2. namespace vkcompute::api and graph/api/: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
  3. namespace vkcompute::vkapi and graph/api/vk_api/: for direct users of Vulkan API

Additionally, we have

  • namespace vkcompute::utils and graph/api/utils/: for utils used by both namespace api and vkapi

Differential Revision: D59281539

and move from namespace `api` to `vkapi`. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:
1. `namespace vkcompute` and `graph/`: for operator computation implementation and scheduling.
2. `namespace vkcompute::api` and `graph/api/`: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
3. `namespace vkcompute::vkapi` and `graph/api/vk_api/`: for direct users of Vulkan API

Additionally, we have
- `namespace vkcompute::utils` and `graph/api/utils/`: for utils used by both namespace `api` and `vkapi`

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jul 2, 2024

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 7828080 with merge base c839b9e (image):

NEW FAILURE - The following job has 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.

@pytorch-bot pytorch-bot bot added ciflow/periodic module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ labels Jul 2, 2024
Copy link

pytorch-bot bot commented Jul 2, 2024

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 Jul 2, 2024
@facebook-github-bot
Copy link
Contributor

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

jorgep31415 added a commit that referenced this pull request Jul 2, 2024
and move from namespace `api` to `vkapi`. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:
1. `namespace vkcompute` and `graph/`: for operator computation implementation and scheduling.
2. `namespace vkcompute::api` and `graph/api/`: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
3. `namespace vkcompute::vkapi` and `graph/api/vk_api/`: for direct users of Vulkan API

Additionally, we have
- `namespace vkcompute::utils` and `graph/api/utils/`: for utils used by both namespace `api` and `vkapi`

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

ghstack-source-id: 232319222
Pull Request resolved: #4125
@SS-JIA SS-JIA self-requested a review July 2, 2024 17:26
and move from namespace `api` to `vkapi`. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:
1. `namespace vkcompute` and `graph/`: for operator computation implementation and scheduling.
2. `namespace vkcompute::api` and `graph/api/`: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
3. `namespace vkcompute::vkapi` and `graph/api/vk_api/`: for direct users of Vulkan API

Additionally, we have
- `namespace vkcompute::utils` and `graph/api/utils/`: for utils used by both namespace `api` and `vkapi`

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

and move from namespace `api` to `vkapi`. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:
1. `namespace vkcompute` and `graph/`: for operator computation implementation and scheduling.
2. `namespace vkcompute::api` and `graph/api/`: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
3. `namespace vkcompute::vkapi` and `graph/api/vk_api/`: for direct users of Vulkan API

Additionally, we have
- `namespace vkcompute::utils` and `graph/api/utils/`: for utils used by both namespace `api` and `vkapi`

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 17bab7d.

kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#4125

and move from namespace `api` to `vkapi`. This gave me a major headache in the number of places to update.

This stack orgnaizes ET-VK neatly into three abstraction levels, both by folder and by namespace:
1. `namespace vkcompute` and `graph/`: for operator computation implementation and scheduling.
2. `namespace vkcompute::api` and `graph/api/`: for tensor objects (and other objects wrapping our VulkanBuffer/VulkanImage).
3. `namespace vkcompute::vkapi` and `graph/api/vk_api/`: for direct users of Vulkan API

Additionally, we have
- `namespace vkcompute::utils` and `graph/api/utils/`: for utils used by both namespace `api` and `vkapi`
ghstack-source-id: 232399401
@exported-using-ghexport

Differential Revision: [D59281539](https://our.internmc.facebook.com/intern/diff/D59281539/)
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