]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
metal : use `vm_allocate` instead of `posix_memalign` on macOS (llama/7078)
authorGilad S <redacted>
Wed, 8 May 2024 19:08:10 +0000 (22:08 +0300)
committerGeorgi Gerganov <redacted>
Mon, 13 May 2024 08:02:26 +0000 (11:02 +0300)
commit69efc39d5c95f2917bf38b85109af15727043a30
tree920556efa48f7df8f261a8c211e56b8137cd5d6e
parenta2ad810118bf31811d66b2379e308d979d584dc3
metal : use `vm_allocate` instead of `posix_memalign` on macOS (llama/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
ggml-metal.m