Browse Source

whisper : support GGML_BACKEND_DL (whisper/2843)

* whisper : support GGML_BACKEND_DL

* fix DTW crash

* whisper.objc : fix build - add ggml-cpp.h

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diego Devesa 10 months ago
parent
commit
6d4c23b81b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ggml/src/CMakeLists.txt

+ 3 - 0
ggml/src/CMakeLists.txt

@@ -226,6 +226,9 @@ add_library(ggml-base
             gguf.cpp)
             gguf.cpp)
 
 
 target_include_directories(ggml-base PRIVATE .)
 target_include_directories(ggml-base PRIVATE .)
+if (GGML_BACKEND_DL)
+    target_compile_definitions(ggml-base PUBLIC GGML_BACKEND_DL)
+endif()
 
 
 add_library(ggml
 add_library(ggml
             ggml-backend-reg.cpp)
             ggml-backend-reg.cpp)