From e400aeb770a2638d8669a344e256d30a5ff44db7 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 2 Apr 2025 15:24:02 +0300 Subject: [PATCH] examples : add new sources ggml-ci --- bindings/ruby/ext/cpu.mk | 2 ++ bindings/ruby/ext/extconf.rb | 4 +++- .../app/src/main/jni/whisper/CMakeLists.txt | 2 ++ .../whisper.android/lib/src/main/jni/whisper/CMakeLists.txt | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bindings/ruby/ext/cpu.mk b/bindings/ruby/ext/cpu.mk index e617d69d..135d270b 100644 --- a/bindings/ruby/ext/cpu.mk +++ b/bindings/ruby/ext/cpu.mk @@ -2,6 +2,8 @@ ggml/src/ggml-cpu/ggml-cpu-cpp.o: \ ggml/src/ggml-cpu/ggml-cpu.cpp \ ggml/src/ggml-cpu/unary-ops.cpp \ ggml/src/ggml-cpu/binary-ops.cpp \ + ggml/src/ggml-cpu/vec.cpp \ + ggml/src/ggml-cpu/ops.cpp \ ggml/include/ggml-backend.h \ ggml/include/ggml.h \ ggml/include/ggml-alloc.h \ diff --git a/bindings/ruby/ext/extconf.rb b/bindings/ruby/ext/extconf.rb index 83f61dfc..d9d6fc06 100644 --- a/bindings/ruby/ext/extconf.rb +++ b/bindings/ruby/ext/extconf.rb @@ -170,7 +170,9 @@ $OBJ_GGML << 'ggml/src/ggml-cpu/ggml-cpu-quants.o' << 'ggml/src/ggml-cpu/ggml-cpu-traits.o' << 'ggml/src/ggml-cpu/unary-ops.o' << - 'ggml/src/ggml-cpu/binary-ops.o' + 'ggml/src/ggml-cpu/binary-ops.o' << + 'ggml/src/ggml-cpu/vec.o' << + 'ggml/src/ggml-cpu/ops.o' $OBJ_WHISPER << 'src/whisper.o' << diff --git a/examples/whisper.android.java/app/src/main/jni/whisper/CMakeLists.txt b/examples/whisper.android.java/app/src/main/jni/whisper/CMakeLists.txt index 693b6041..a6688079 100644 --- a/examples/whisper.android.java/app/src/main/jni/whisper/CMakeLists.txt +++ b/examples/whisper.android.java/app/src/main/jni/whisper/CMakeLists.txt @@ -14,6 +14,8 @@ set(SOURCE_FILES ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/ggml-cpu.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/unary-ops.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/binary-ops.cpp + ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/vec.cpp + ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/ops.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-alloc.c ${WHISPER_LIB_DIR}/ggml/src/ggml-backend.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-backend-reg.cpp diff --git a/examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt b/examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt index 6bd43137..42836fb3 100644 --- a/examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt +++ b/examples/whisper.android/lib/src/main/jni/whisper/CMakeLists.txt @@ -34,6 +34,8 @@ if (NOT GGML_HOME) ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/ggml-cpu-traits.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/unary-ops.cpp ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/binary-ops.cpp + ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/vec.cpp + ${WHISPER_LIB_DIR}/ggml/src/ggml-cpu/ops.cpp ) endif()