Skip to content

llama : fix mlock with no-mmap with Metal #5025

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
Jan 18, 2024
Merged

llama : fix mlock with no-mmap with Metal #5025

merged 1 commit into from
Jan 18, 2024

Conversation

slaren
Copy link
Member

@slaren slaren commented Jan 18, 2024

With Metal it is possible to have two host buffers to mlock (CPU and Metal), so it is not enough to use a single llama_mlock object.

Fixes #5023

@slaren slaren merged commit 96d7f56 into master Jan 18, 2024
@slaren slaren deleted the sl/fix-mlock branch January 18, 2024 20:12
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Feb 3, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 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] Using --no-mmap --mlock crashes the server
2 participants