Skip to content

[Vulkan] Stage bool tensors without 8-bit storage and register logical_not - #23207

Closed
mergennachin wants to merge 1 commit into
mergennachin/vulkan-23156-06-reduction-guardsfrom
mergennachin/vulkan-23156-07-bool-staging
Closed

mergennachin wants to merge 1 commit into
mergennachin/vulkan-23156-06-reduction-guardsfrom
mergennachin/vulkan-23156-07-bool-staging

Conversation

@mergennachin

@mergennachin mergennachin commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #23246, part 7/15 of the ghstack replacement series. The current integration PR is #23254. This PR is closed in favor of the replacement; its previous description and review history are retained.


is_bitw8 did not include kBool, so bool staging required 8-bit storage buffers even for texture tensors. It now takes the bitw8 path. VulkanBackend::init rejects graphs with non-constant bool buffers with NotSupported on devices without 8-bit storage buffers, and destroys the partially built graph on any init error. aten.logical_not was already accepted by the partitioner but had no runtime registration; it now maps to the uint8 bitwise_not kernel.

Part 7/15 of the Vulkan transformer and operator-conformance stack. Depends on #23206; review against the selected base branch. Integration PR: #23162. Related logical_not registration: #22786.

Validation: 2 passed, 1 skipped, 2 warnings in 10.55s. Lintrunner and git diff --check pass. Native tests use MoltenVK with portable CPU kernels; hardware and SwiftShader CI are pending.

Authored with OpenAI Codex; split planned with Claude Code.

cc @SS-JIA @manuelcandales @digantdesai @cbilgin

…l_not

is_bitw8 did not include kBool, so bool staging required 8-bit storage buffers even for texture tensors. It now takes the bitw8 path. VulkanBackend::init rejects graphs with non-constant bool buffers with NotSupported on devices without 8-bit storage buffers, and destroys the partially built graph on any init error. aten.logical_not was already accepted by the partitioner but had no runtime registration; it now maps to the uint8 bitwise_not kernel.

Authored with OpenAI Codex; split planned with Claude Code.
@pytorch-bot pytorch-bot Bot added the module: vulkan Issues related to the Vulkan delegate and code under backends/vulkan/ label Sep 28, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit b18b2ff with merge base a318382 (image):

NEW FAILURE - The following job has failed:

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

This branch was successfully deployed

1 active deployment
cadence — b18b2ffc Deployed Sep 28, 2026 by mergennachin via hifi-op-test / hifi4 #30197
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. 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.

1 participant