Skip to content

Vulkan: Default to 1GB allocations instead of 4GB to avoid fragmentation and driver issues #12434

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

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

0cc4m
Copy link
Collaborator

@0cc4m 0cc4m commented Mar 17, 2025

Extend the changes done in #11551 to all cases to avoid driver allocation issues that keep coming up. On some drivers allocations fail for other reasons than fragmentation, despite being below the size limit. Some examples in #5441. This should fix that.

I couldn't reproduce performance differences I saw in the previous PR, so it might just have been noise. Sorry about that @jeffbolznv

@0cc4m 0cc4m requested a review from jeffbolznv March 17, 2025 19:46
@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 Mar 17, 2025
@0cc4m 0cc4m merged commit fd123cf into master Mar 18, 2025
47 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Mar 19, 2025
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.

2 participants