llama.cpp
fix: use `vm_allocate` instead of `posix_memalign` for Metal on macOS
#7078
Merged

fix: use `vm_allocate` instead of `posix_memalign` for Metal on macOS #7078

giladgd
giladgd fix: use `malloc` instead of `posix_memalign` in `ggml-metal.m` to ma…
571dca57
giladgd fix: typo
a53e5179
slaren
giladgd fix: use `vm_allocate` instead of `posix_memalign`
bfa4daea
giladgd
giladgd fix: don't call `newBufferWithBytesNoCopy` with `NULL` when `ggml_met…
a92efecb
giladgd fix: use `vm_allocate` only on macOS
78214ac5
giladgd giladgd changed the title fix: workaround to not crash when running in Electron fix: use `vm_allocate` instead of `posix_memalign` for Metal on macOS 1 year ago
giladgd
slaren
slaren approved these changes on 2024-05-07
ggerganov ggerganov merged 26458af1 into master 1 year ago
giladgd giladgd deleted the metalPosixMemalignWorkaround branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone