-
Notifications
You must be signed in to change notification settings - Fork 748
[ET-VK][ez] Fix partitioner logic #12196
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
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12196
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 9 PendingAs of commit bd76973 with merge base 1315388 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI ghstack-source-id: 9ccc526 ghstack-comment-id: 3032442697 Pull Request resolved: #12196
This PR needs a
|
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI ghstack-source-id: 5a70bfd ghstack-comment-id: 3032442697 Pull Request resolved: #12196
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI ghstack-source-id: 229e617 ghstack-comment-id: 3032442697 Pull Request resolved: #12196
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI ghstack-source-id: 049da62 ghstack-comment-id: 3032442697 Pull Request resolved: #12196
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI ghstack-source-id: ca0725f ghstack-comment-id: 3032442697 Pull Request resolved: #12196
Summary: ## Changes * In partitioner, check if buffer storage can be used only after it has been determined that no valid texture layouts are available ## Context Currently, the logic in the vulkan partitioner is incorrect. 1. First, it checks what texture layouts may be used to represent the tensors involved in the computation 2. If no texture layouts are available, it checks if buffer support is available and the tensors are small enough to be within Vulkan buffer limits 3. Then, it checks if all valid texture layouts are supported by the op. This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured. The fix is to switch the order of 2 and 3. Test Plan: ## Test Plan Manual verification + CI
Summary:
Changes
Context
Currently, the logic in the vulkan partitioner is incorrect.
This introduces a bug in situations where 3 fails, but 2 would pass. However, 2 is not checked due to the way the logic is structured.
The fix is to switch the order of 2 and 3.
Test Plan:
Test Plan
Manual verification + CI