Skip to content

Commit

Permalink
metal : option to embed MSL source into compiled binary (ggerganov#1842)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
didzis authored and jiahansu committed May 15, 2024
1 parent 675818a commit 554236b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,11 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
GGML_METAL_LOG_ERROR("%s: error: %s\n", __func__, [[error description] UTF8String]);
return NULL;
}
<<<<<<< HEAD
#endif // GGML_METAL_EMBED_LIBRARY
=======
#endif
>>>>>>> 1f00fe9 (metal : option to embed MSL source into compiled binary (#1842))

@autoreleasepool {
// dictionary of preprocessor macros
Expand Down

0 comments on commit 554236b

Please sign in to comment.