metal : use `vm_allocate` instead of `posix_memalign` on macOS (#7078)
* fix: use `malloc` instead of `posix_memalign` in `ggml-metal.m` to make it not crash Electron proccesses * fix: typo * fix: use `vm_allocate` instead of `posix_memalign` * fix: don't call `newBufferWithBytesNoCopy` with `NULL` when `ggml_metal_host_malloc` returns `NULL` * fix: use `vm_allocate` only on macOS
G
Gilad S committed
26458af1d63c85195cd96cd1673051e332d06d30
Parent: 83330d8
Committed by GitHub <noreply@github.com>
on 5/8/2024, 7:08:10 PM