Repository navigation
Adding --iree-vulkan-experimental-indirect-bindings=true flag. - #14977
Merged
Merged
Conversation
benvanik
marked this pull request as ready for review
September 14, 2023 22:00
benvanik
requested review from
MaheshRavishankar and
stellaraccident
as code owners
September 14, 2023 22:00
benvanik
enabled auto-merge (squash)
September 14, 2023 22:00
kuhar
reviewed
Sep 15, 2023
benvanik
force-pushed
the
benvanik-indirect-flags
branch
from
September 19, 2023 22:51
fc17010 to
38bd689
Compare
This makes all descriptor set layouts have the new Indirect bit set and plumbs it all the way through to the runtime `IREE_HAL_DESCRIPTOR_SET_LAYOUT_FLAG_INDIRECT` bit. SPIR-V codegen can then inspect the pipeline layout attr of exports to discover which bindings are indirect and lower differently and for the runtime to specially handle the indirect descriptor sets by producing device address buffers. Progress on #13945.
benvanik
force-pushed
the
benvanik-indirect-flags
branch
from
September 19, 2023 23:25
38bd689 to
2d538fa
Compare
kuhar
added a commit
to kuhar/iree
that referenced
this pull request
Jan 31, 2024
This is so that we can check decide if the `PhysicalStorageBufferAddresses` is available. Issue: iree-org#14977
kuhar
added a commit
that referenced
this pull request
Feb 1, 2024
This is so that we can check `VkPhysicalDeviceBufferDeviceAddressFeatures` and decide if the `PhysicalStorageBufferAddresses` SPIR-V capability is available. Issue: #14977
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes all descriptor set layouts have the new
Indirectbit set and plumbs it all the way through to the runtimeIREE_HAL_DESCRIPTOR_SET_LAYOUT_FLAG_INDIRECTbit. SPIR-V codegen can inspect the pipeline layout attr of exports to discover which descriptor sets are indirect and lower viaVK_KHR_buffer_device_addressand for the runtime to specially handle the indirect descriptor sets by producing device address buffers. The flag is currently experimental as interop with non-indirect dispatches (custom/produced by other higher layers like IREE input dialects/plugins) and multi-versioning (producing both direct and indirect) are TBD. It should be sufficient for users targeting specific Vulkan devices where they know the support is present, though.Note that while this is just the plumbing for the flag and the IR/runtime bits nothing is either lowering differently or setting up the appropriate runtime structures but it should allow codegen to start experimenting with alternative lowerings.
Progress on #13945.