]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : update sync scripts
authorGeorgi Gerganov <redacted>
Mon, 18 Aug 2025 17:32:37 +0000 (20:32 +0300)
committerGeorgi Gerganov <redacted>
Mon, 18 Aug 2025 17:34:22 +0000 (20:34 +0300)
scripts/sync-whisper-am.sh
scripts/sync-whisper.sh

index 7b476ca601f5af5df0f471c10df51d27cb31ae63..8fad4368a7915d66d795c4619fd528da90b02455 100755 (executable)
@@ -56,22 +56,7 @@ while read c; do
         ggml/CMakeLists.txt \
         ggml/src/CMakeLists.txt \
         ggml/cmake/FindSIMD.cmake \
-        ggml/src/ggml*.h \
-        ggml/src/ggml*.c \
-        ggml/src/ggml*.cpp \
-        ggml/src/gguf*.cpp \
-        ggml/src/ggml-blas/* \
-        ggml/src/ggml-cann/* \
-        ggml/src/ggml-cpu/* \
-        ggml/src/ggml-cuda/* \
-        ggml/src/ggml-hip/* \
-        ggml/src/ggml-kompute/* \
-        ggml/src/ggml-metal/* \
-        ggml/src/ggml-musa/* \
-        ggml/src/ggml-opencl/* \
-        ggml/src/ggml-rpc/* \
-        ggml/src/ggml-sycl/* \
-        ggml/src/ggml-vulkan/* \
+        ggml/src/ggml* \
         ggml/include/ggml*.h \
         ggml/include/gguf*.h \
         examples/common-ggml.h \
@@ -107,22 +92,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # ggml/src/CMakelists.txt   -> src/CMakeLists.txt
     # ggml/cmake/FindSIMD.cmake -> cmake/FindSIMD.cmake
     #
-    # ggml/src/ggml*.c          -> src/ggml*.c
-    # ggml/src/ggml*.cpp        -> src/ggml*.cpp
-    # ggml/src/ggml*.h          -> src/ggml*.h
-    # ggml/src/gguf*.cpp        -> src/gguf*.cpp
-    # ggml/src/ggml-blas/*      -> src/ggml-blas/*
-    # ggml/src/ggml-cann/*      -> src/ggml-cann/*
-    # ggml/src/ggml-cpu/*       -> src/ggml-cpu/*
-    # ggml/src/ggml-cuda/*      -> src/ggml-cuda/*
-    # ggml/src/ggml-hip/*       -> src/ggml-hip/*
-    # ggml/src/ggml-kompute/*   -> src/ggml-kompute/*
-    # ggml/src/ggml-metal/*     -> src/ggml-metal/*
-    # ggml/src/ggml-musa/*      -> src/ggml-musa/*
-    # ggml/src/ggml-opencl/*    -> src/ggml-opencl/*
-    # ggml/src/ggml-rpc/*       -> src/ggml-rpc/*
-    # ggml/src/ggml-sycl/*      -> src/ggml-sycl/*
-    # ggml/src/ggml-vulkan/*    -> src/ggml-vulkan/*
+    # ggml/src/ggml* -> src/ggml*
     #
     # ggml/include/ggml*.h -> include/ggml*.h
     # ggml/include/gguf*.h -> include/gguf*.h
@@ -139,22 +109,7 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/ggml\/CMakeLists\.txt/\/CMakeLists.txt/g' \
         -e 's/\/ggml\/src\/CMakeLists\.txt/\/src\/CMakeLists.txt/g' \
         -e 's/\/ggml\/cmake\/FindSIMD\.cmake/\/cmake\/FindSIMD.cmake/g' \
-        -e 's/\/ggml\/src\/ggml(.*)\.c/\/src\/ggml\1.c/g' \
-        -e 's/\/ggml\/src\/ggml(.*)\.cpp/\/src\/ggml\1.cpp/g' \
-        -e 's/\/ggml\/src\/ggml(.*)\.h/\/src\/ggml\1.h/g' \
-        -e 's/\/ggml\/src\/gguf(.*)\.cpp/\/src\/gguf\1.cpp/g' \
-        -e 's/\/ggml\/src\/ggml-blas\//\/src\/ggml-blas\//g' \
-        -e 's/\/ggml\/src\/ggml-cann\//\/src\/ggml-cann\//g' \
-        -e 's/\/ggml\/src\/ggml-cpu\//\/src\/ggml-cpu\//g' \
-        -e 's/\/ggml\/src\/ggml-cuda\//\/src\/ggml-cuda\//g' \
-        -e 's/\/ggml\/src\/ggml-hip\//\/src\/ggml-hip\//g' \
-        -e 's/\/ggml\/src\/ggml-kompute\//\/src\/ggml-kompute\//g' \
-        -e 's/\/ggml\/src\/ggml-metal\//\/src\/ggml-metal\//g' \
-        -e 's/\/ggml\/src\/ggml-musa\//\/src\/ggml-musa\//g' \
-        -e 's/\/ggml\/src\/ggml-opencl\//\/src\/ggml-opencl\//g' \
-        -e 's/\/ggml\/src\/ggml-rpc\//\/src\/ggml-rpc\//g' \
-        -e 's/\/ggml\/src\/ggml-sycl\//\/src\/ggml-sycl\//g' \
-        -e 's/\/ggml\/src\/ggml-vulkan\//\/src\/ggml-vulkan\//g' \
+        -e 's/\/ggml\/src\/ggml(.*)/\/src\/ggml\1/g' \
         -e 's/\/ggml\/include\/ggml(.*)\.h/\/include\/ggml\1.h/g' \
         -e 's/\/ggml\/include\/gguf(.*)\.h/\/include\/gguf\1.h/g' \
         -e 's/\/examples\/common\.h/\/examples\/common.h/g' \
index 3bbf226dc0db2f8a192d83671772912df4570907..b2a853b048ee8db084bea2caa73f896c5527aaae 100755 (executable)
@@ -4,22 +4,7 @@ cp -rpv ../whisper.cpp/ggml/CMakeLists.txt       CMakeLists.txt
 cp -rpv ../whisper.cpp/ggml/src/CMakeLists.txt   src/CMakeLists.txt
 cp -rpv ../whisper.cpp/ggml/cmake/FindSIMD.cmake cmake/FindSIMD.cmake
 
-cp -rpv ../whisper.cpp/ggml/src/ggml*.c          src/
-cp -rpv ../whisper.cpp/ggml/src/ggml*.cpp        src/
-cp -rpv ../whisper.cpp/ggml/src/ggml*.h          src/
-cp -rpv ../whisper.cpp/ggml/src/gguf*.cpp        src/
-cp -rpv ../whisper.cpp/ggml/src/ggml-blas/*      src/ggml-blas/
-cp -rpv ../whisper.cpp/ggml/src/ggml-cann/*      src/ggml-cann/
-cp -rpv ../whisper.cpp/ggml/src/ggml-cpu/*       src/ggml-cpu/
-cp -rpv ../whisper.cpp/ggml/src/ggml-cuda/*      src/ggml-cuda/
-cp -rpv ../whisper.cpp/ggml/src/ggml-hip/*       src/ggml-hip/
-cp -rpv ../whisper.cpp/ggml/src/ggml-kompute/*   src/ggml-kompute/
-cp -rpv ../whisper.cpp/ggml/src/ggml-metal/*     src/ggml-metal/
-cp -rpv ../whisper.cpp/ggml/src/ggml-musa/*      src/ggml-musa/
-cp -rpv ../whisper.cpp/ggml/src/ggml-opencl/*    src/ggml-opencl/
-cp -rpv ../whisper.cpp/ggml/src/ggml-rpc/*       src/ggml-rpc/
-cp -rpv ../whisper.cpp/ggml/src/ggml-sycl/*      src/ggml-sycl/
-cp -rpv ../whisper.cpp/ggml/src/ggml-vulkan/*    src/ggml-vulkan/
+cp -rpv ../whisper.cpp/ggml/src/ggml* src/
 
 cp -rpv ../whisper.cpp/ggml/include/ggml*.h include/
 cp -rpv ../whisper.cpp/ggml/include/gguf*.h include/