]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : fix sync order + metal sed
authorGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 09:24:48 +0000 (11:24 +0200)
committerGeorgi Gerganov <redacted>
Wed, 3 Jan 2024 12:20:04 +0000 (14:20 +0200)
scripts/sync-llama-am.sh
scripts/sync-whisper-am.sh

index 422a0e6b461cd0fcac632ec26b56f0d9ccfba82e..c3caebdf37da5a63f0327d2f1c3de6e46438f78d 100755 (executable)
@@ -27,7 +27,7 @@ echo "Syncing llama.cpp changes since commit $lc"
 cd $SRC_LLAMA
 
 git log --oneline $lc..HEAD
-git log --oneline $lc..HEAD | grep -v "(ggml/[0-9]*)" | grep -v "(whisper/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/llama-commits
+git log --oneline $lc..HEAD --reverse | grep -v "(ggml/[0-9]*)" | grep -v "(whisper/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/llama-commits
 
 if [ ! -s $SRC_GGML/llama-commits ]; then
     rm -v $SRC_GGML/llama-commits
@@ -86,7 +86,6 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # ggml-impl.h         -> src/ggml-impl.h
     # ggml-metal.h        -> src/ggml-metal.h
     # ggml-metal.m        -> src/ggml-metal.m
-    # ggml-metal.metal    -> src/ggml-metal.metal
     # ggml-mpi.h          -> src/ggml-mpi.h
     # ggml-mpi.c          -> src/ggml-mpi.c
     # ggml-opencl.cpp     -> src/ggml-opencl.cpp
@@ -113,7 +112,6 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/ggml-impl\.h/\/src\/ggml-impl.h/g' \
         -e 's/\/ggml-metal\.h/\/src\/ggml-metal.h/g' \
         -e 's/\/ggml-metal\.m/\/src\/ggml-metal.m/g' \
-        -e 's/\/ggml-metal\.metal/\/src\/ggml-metal.metal/g' \
         -e 's/\/ggml-mpi\.h/\/src\/ggml-mpi.h/g' \
         -e 's/\/ggml-mpi\.c/\/src\/ggml-mpi.c/g' \
         -e 's/\/ggml-opencl\.cpp/\/src\/ggml-opencl.cpp/g' \
index 190d222559e2f8980f4436291f7a72220800eac1..bdc4d176410c558d5d5183565349e3b51e862a38 100755 (executable)
@@ -27,7 +27,7 @@ echo "Syncing whisper.cpp changes since commit $lc"
 cd $SRC_WHISPER
 
 git log --oneline $lc..HEAD
-git log --oneline $lc..HEAD | grep -v "(ggml/[0-9]*)" | grep -v "(llama/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/whisper-commits
+git log --oneline $lc..HEAD --reverse | grep -v "(ggml/[0-9]*)" | grep -v "(llama/[0-9]*)" | cut -d' ' -f1 > $SRC_GGML/whisper-commits
 
 if [ ! -s $SRC_GGML/whisper-commits ]; then
     rm -v $SRC_GGML/whisper-commits
@@ -89,7 +89,6 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
     # ggml-impl.h         -> src/ggml-impl.h
     # ggml-metal.h        -> src/ggml-metal.h
     # ggml-metal.m        -> src/ggml-metal.m
-    # ggml-metal.metal    -> src/ggml-metal.metal
     # ggml-mpi.h          -> src/ggml-mpi.h
     # ggml-mpi.c          -> src/ggml-mpi.c
     # ggml-opencl.cpp     -> src/ggml-opencl.cpp
@@ -120,7 +119,6 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then
         -e 's/\/ggml-impl\.h/\/src\/ggml-impl.h/g' \
         -e 's/\/ggml-metal\.h/\/src\/ggml-metal.h/g' \
         -e 's/\/ggml-metal\.m/\/src\/ggml-metal.m/g' \
-        -e 's/\/ggml-metal\.metal/\/src\/ggml-metal.metal/g' \
         -e 's/\/ggml-mpi\.h/\/src\/ggml-mpi.h/g' \
         -e 's/\/ggml-mpi\.c/\/src\/ggml-mpi.c/g' \
         -e 's/\/ggml-opencl\.cpp/\/src\/ggml-opencl.cpp/g' \