From: Georgi Gerganov Date: Mon, 18 Aug 2025 17:32:37 +0000 (+0300) Subject: scripts : update sync scripts X-Git-Tag: upstream/0.0.2471~2 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=34c6890119dc37ff8bafff7ad743fd8b34eb40b1;p=pkg%2Fggml%2Fsources%2Fggml scripts : update sync scripts --- diff --git a/scripts/sync-whisper-am.sh b/scripts/sync-whisper-am.sh index 7b476ca6..8fad4368 100755 --- a/scripts/sync-whisper-am.sh +++ b/scripts/sync-whisper-am.sh @@ -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' \ diff --git a/scripts/sync-whisper.sh b/scripts/sync-whisper.sh index 3bbf226d..b2a853b0 100755 --- a/scripts/sync-whisper.sh +++ b/scripts/sync-whisper.sh @@ -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/