From: Georgi Gerganov Date: Wed, 27 Dec 2023 09:42:45 +0000 (+0200) Subject: scripts : fix sed in sync-llama.am.sh X-Git-Tag: upstream/0.0.1642~1153 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=3d57e767653eeaf7b3cc311bdc4ff24771be1ee7;p=pkg%2Fggml%2Fsources%2Fggml scripts : fix sed in sync-llama.am.sh --- diff --git a/scripts/sync-llama-am.sh b/scripts/sync-llama-am.sh index eb22ff26..3d402131 100755 --- a/scripts/sync-llama-am.sh +++ b/scripts/sync-llama-am.sh @@ -89,30 +89,30 @@ if [ -f $SRC_GGML/llama-src.patch ]; then # tests/test-backend-ops.cpp -> tests/test-backend-ops.cpp cat llama-src.patch | sed \ - -e 's/\/ggml\.c/\/src\/ggml.c/' \ - -e 's/\/ggml-alloc\.c/\/src\/ggml-alloc.c/' \ - -e 's/\/ggml-backend-impl\.h/\/src\/ggml-backend-impl.h/' \ - -e 's/\/ggml-backend\.c/\/src\/ggml-backend.c/' \ - -e 's/\/ggml-cuda\.cu/\/src\/ggml-cuda.cu/' \ - -e 's/\/ggml-cuda\.h/\/src\/ggml-cuda.h/' \ - -e 's/\/ggml-impl\.h/\/src\/ggml-impl.h/' \ - -e 's/\/ggml-metal\.h/\/src\/ggml-metal.h/' \ - -e 's/\/ggml-metal\.m/\/src\/ggml-metal.m/' \ - -e 's/\/ggml-metal\.metal/\/src\/ggml-metal.metal/' \ - -e 's/\/ggml-mpi\.h/\/src\/ggml-mpi.h/' \ - -e 's/\/ggml-mpi\.c/\/src\/ggml-mpi.c/' \ - -e 's/\/ggml-opencl\.cpp/\/src\/ggml-opencl.cpp/' \ - -e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/' \ - -e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/' \ - -e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/' \ - -e 's/\/ggml\.h/\/include\/ggml\/ggml.h/' \ - -e 's/\/ggml-alloc\.h/\/include\/ggml\/ggml-alloc.h/' \ - -e 's/\/ggml-backend\.h/\/include\/ggml\/ggml-backend.h/' \ - -e 's/\/tests\/test-opt\.cpp/\/tests\/test-opt.cpp/' \ - -e 's/\/tests\/test-grad0\.cpp/\/tests\/test-grad0.cpp/' \ - -e 's/\/tests\/test-quantize-fns\.cpp/\/tests\/test-quantize-fns.cpp/' \ - -e 's/\/tests\/test-quantize-perf\.cpp/\/tests\/test-quantize-perf.cpp/' \ - -e 's/\/tests\/test-backend-ops\.cpp/\/tests\/test-backend-ops.cpp/' \ + -e 's/\/ggml\.c/\/src\/ggml.c/g' \ + -e 's/\/ggml-alloc\.c/\/src\/ggml-alloc.c/g' \ + -e 's/\/ggml-backend-impl\.h/\/src\/ggml-backend-impl.h/g' \ + -e 's/\/ggml-backend\.c/\/src\/ggml-backend.c/g' \ + -e 's/\/ggml-cuda\.cu/\/src\/ggml-cuda.cu/g' \ + -e 's/\/ggml-cuda\.h/\/src\/ggml-cuda.h/g' \ + -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' \ + -e 's/\/ggml-opencl\.h/\/src\/ggml-opencl.h/g' \ + -e 's/\/ggml-quants\.c/\/src\/ggml-quants.c/g' \ + -e 's/\/ggml-quants\.h/\/src\/ggml-quants.h/g' \ + -e 's/\/ggml\.h/\/include\/ggml\/ggml.h/g' \ + -e 's/\/ggml-alloc\.h/\/include\/ggml\/ggml-alloc.h/g' \ + -e 's/\/ggml-backend\.h/\/include\/ggml\/ggml-backend.h/g' \ + -e 's/\/tests\/test-opt\.cpp/\/tests\/test-opt.cpp/g' \ + -e 's/\/tests\/test-grad0\.cpp/\/tests\/test-grad0.cpp/g' \ + -e 's/\/tests\/test-quantize-fns\.cpp/\/tests\/test-quantize-fns.cpp/g' \ + -e 's/\/tests\/test-quantize-perf\.cpp/\/tests\/test-quantize-perf.cpp/g' \ + -e 's/\/tests\/test-backend-ops\.cpp/\/tests\/test-backend-ops.cpp/g' \ > llama-src.patch.tmp mv llama-src.patch.tmp llama-src.patch