Skip to content
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

vulkan: Use push constant offset to handle misaligned descriptors #10987

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeffbolznv
Copy link
Collaborator

For #10984.

Compute descriptor misalignment for unary/binary ops, and put the offset in a push descriptor which the shader adds to the index. I did this for all the unary/binary ops except get_rows_quant because those use the quant type for the buffer block and so the indexing wouldn't work.

I don't think test_backend_ops has good coverage for non-zero offsets, so please help suggest and tests I should run. I ran llama-cli on a couple models.

@jeffbolznv jeffbolznv requested a review from 0cc4m December 26, 2024 17:09
@github-actions github-actions bot added Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning Vulkan Issues specific to the Vulkan backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant