diff options
author | Gilad S <giladgd@users.noreply.github.com> | 2024-05-08 22:08:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 22:08:10 +0300 |
commit | 26458af1d63c85195cd96cd1673051e332d06d30 (patch) | |
tree | 24d3e0331b7aa59d9ec67a0db8bd6fd87adbf2ad /examples/parallel/parallel.cpp | |
parent | 83330d8cd6491e53e1aca4c5dfc47e039b3c04ff (diff) |
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
Diffstat (limited to 'examples/parallel/parallel.cpp')
0 files changed, 0 insertions, 0 deletions