0004-ggml-metal.patch 1004 B

123456789101112131415161718192021222324
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: jmorganca <jmorganca@gmail.com>
  3. Date: Wed, 12 Jun 2024 12:18:40 -0700
  4. Subject: [PATCH] ggml-metal
  5. ---
  6. ggml/src/ggml-metal.m | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/ggml/src/ggml-metal.m b/ggml/src/ggml-metal.m
  9. index 3a433703..829c5e39 100644
  10. --- a/ggml/src/ggml-metal.m
  11. +++ b/ggml/src/ggml-metal.m
  12. @@ -392,8 +392,8 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
  13. #if GGML_METAL_EMBED_LIBRARY
  14. GGML_METAL_LOG_INFO("%s: using embedded metal library\n", __func__);
  15. - extern const char ggml_metallib_start[];
  16. - extern const char ggml_metallib_end[];
  17. + extern const char *ggml_metallib_start;
  18. + extern const char *ggml_metallib_end;
  19. NSString * src = [[NSString alloc] initWithBytes:ggml_metallib_start length:(ggml_metallib_end-ggml_metallib_start) encoding:NSUTF8StringEncoding];
  20. #else