]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
metal : option to embed MSL source into compiled binary (whisper/1842)
authorDidzis Gosko <redacted>
Sun, 11 Feb 2024 14:41:41 +0000 (16:41 +0200)
committerGeorgi Gerganov <redacted>
Mon, 12 Feb 2024 07:32:52 +0000 (09:32 +0200)
commita05a28fa2bd9aab98810657a9d2ed0379979c7f7
tree413ff43006e50d934137160d734168e791f91929
parent055b4c298901222b1d4e0e05d9eb8a5fbaf68747
metal : option to embed MSL source into compiled binary (whisper/1842)

* ggml : embed Metal library source (ggml-metal.metal) into binary

enable by setting WHISPER_EMBED_METAL_LIBRARY

* rename the build option

* rename the preprocessor directive

* generate Metal library embedding assembly on-fly during build process
src/ggml-metal.m