Skip to content

metal : handle zero-sized allocs #9466

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
Sep 16, 2024
Merged

metal : handle zero-sized allocs #9466

merged 1 commit into from
Sep 16, 2024

Conversation

ggerganov
Copy link
Member

fix #9460

Upon attempting to allocate Metal buffers with size of 0 bytes, simply return nil.

@ggerganov ggerganov merged commit c4965a6 into master Sep 16, 2024
53 checks passed
@ggerganov ggerganov deleted the gg/metal-zero-allocs branch September 16, 2024 06:05
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: ggml_backend_metal_buffer_type_alloc_buffer: error: failed to allocate buffer
1 participant