]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : add ggml-sycl to sync scripts (#857)
authorYilong Guo <redacted>
Sun, 16 Jun 2024 07:40:35 +0000 (00:40 -0700)
committerGitHub <redacted>
Sun, 16 Jun 2024 07:40:35 +0000 (10:40 +0300)
scripts/sync-llama-am.sh
scripts/sync-llama.sh

index b0170e562be24f354d70c6dcf6e922dda1bdff1b..beb8b959a9b5ffab5dfe8d0d288b6c0a5315cba7 100755 (executable)
@@ -60,6 +60,7 @@ while read c; do
         ggml*.metal \
         ggml*.cu \
         ggml-cuda/* \
+        ggml-sycl/* \
         tests/test-opt.cpp \
         tests/test-grad0.cpp \
         tests/test-quantize-fns.cpp \
@@ -111,6 +112,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     # ggml-quants.h       -> src/ggml-quants.h
     # ggml-rpc.cpp        -> src/ggml-rpc.cpp
     # ggml-rpc.h          -> src/ggml-rpc.h
+    # ggml-sycl/*         -> src/ggml-sycl/*
     # ggml-sycl.cpp       -> src/ggml-sycl.cpp
     # ggml-sycl.h         -> src/ggml-sycl.h
     # ggml-vulkan.cpp     -> src/ggml-vulkan.cpp
@@ -148,6 +150,7 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
         -e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \
         -e 's/\/ggml-rpc\.cpp/\/src\/ggml-rpc.cpp/g' \
         -e 's/\/ggml-rpc\.h/\/src\/ggml-rpc.h/g' \
+        -e 's/\/ggml-sycl\//\/src\/ggml-sycl\//g' \
         -e 's/\/ggml-sycl\.cpp/\/src\/ggml-sycl.cpp/g' \
         -e 's/\/ggml-sycl\.h/\/src\/ggml-sycl.h/g' \
         -e 's/\/ggml-vulkan\.cpp/\/src\/ggml-vulkan.cpp/g' \
index 35acb3fe8d97b8ba391a6ad247ad2c00041fe558..dd60d51f208b34ba4bcb8816d728ab7abb72a47c 100755 (executable)
@@ -22,6 +22,7 @@ cp -rpv ../llama.cpp/ggml-quants.c       src/ggml-quants.c
 cp -rpv ../llama.cpp/ggml-quants.h       src/ggml-quants.h
 cp -rpv ../llama.cpp/ggml-rpc.cpp        src/ggml-rpc.cpp
 cp -rpv ../llama.cpp/ggml-rpc.h          src/ggml-rpc.h
+cp -rpv ../llama.cpp/ggml-sycl/*         src/ggml-sycl/
 cp -rpv ../llama.cpp/ggml-sycl.cpp       src/ggml-sycl.cpp
 cp -rpv ../llama.cpp/ggml-sycl.h         src/ggml-sycl.h
 cp -rpv ../llama.cpp/ggml-vulkan.cpp     src/ggml-vulkan.cpp