vulkan: add pipeline barriers for memcpy read operations#23770
Merged
Conversation
jeffbolznv
reviewed
May 27, 2026
f0e0f66 to
0a1ebc5
Compare
0a1ebc5 to
d998fbf
Compare
Contributor
Author
|
I forgot to push this further, let's get it done now. @jeffbolznv This may not be all barriers that are needed, but for now it should unblock the two PRs depending on it. Any concerns? |
Contributor
|
Have somebody done perf testing to make sure this doesn't add a bunch of overhead? I'm less worried about it since it's limited to uma devices. It would be nice to check perf on dgx spark but I don't have access to one. But I'll +1 it to unblock things. |
jeffbolznv
approved these changes
Jun 12, 2026
Contributor
Author
|
Good idea, here's Qwen on DGX Spark with this PR, #24326 and #22930:
And the same on AMD Strix Halo:
|
Contributor
Author
|
@ggml-org/maintainers Another approval needed. |
ngxson
approved these changes
Jun 12, 2026
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.
Overview
Insert Vulkan pipeline barriers before/after memcpy operations for host-visible memory. This resolves the Intel read issue in #22930, and I also added the opposite direction barriers for writes. I am not sure if this is the best way. @jeffbolznv @rillomas
Requirements