Spaces:
Running
Running
sync : ggml + fix sync script
Browse files- scripts/sync-ggml-am.sh +35 -35
- scripts/sync-ggml.last +1 -1
scripts/sync-ggml-am.sh
CHANGED
|
@@ -134,41 +134,41 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
|
| 134 |
# LICENSE -> LICENSE
|
| 135 |
# ggml/scripts/gen-authors.sh -> scripts/gen-authors.sh
|
| 136 |
|
| 137 |
-
cat ggml-src.patch | sed \
|
| 138 |
-
-e 's/CMakeLists.txt
|
| 139 |
-
-e 's/src\/CMakeLists.txt
|
| 140 |
-
-e 's/cmake\/FindSIMD.cmake
|
| 141 |
-
-e 's/src\/ggml\.c
|
| 142 |
-
-e 's/src\/ggml-alloc\.c
|
| 143 |
-
-e 's/src\/ggml-backend-impl\.h
|
| 144 |
-
-e 's/src\/ggml-backend\.c
|
| 145 |
-
-e 's/src\/ggml-common\.h
|
| 146 |
-
-e 's/src\/ggml-cuda
|
| 147 |
-
-e 's/src\/ggml-cuda\.cu
|
| 148 |
-
-e 's/src\/ggml-impl\.h
|
| 149 |
-
-e 's/src\/ggml-kompute\.cpp
|
| 150 |
-
-e 's/src\/ggml-metal\.m
|
| 151 |
-
-e 's/src\/ggml-quants\.c
|
| 152 |
-
-e 's/src\/ggml-quants\.h
|
| 153 |
-
-e 's/src\/ggml-rpc\.cpp
|
| 154 |
-
-e 's/src\/ggml-sycl\.cpp
|
| 155 |
-
-e 's/src\/ggml-vulkan\.cpp
|
| 156 |
-
-e 's/include\/ggml\.h
|
| 157 |
-
-e 's/include\/ggml-alloc\.h
|
| 158 |
-
-e 's/include\/ggml-backend\.h
|
| 159 |
-
-e 's/include\/ggml-blas\.h
|
| 160 |
-
-e 's/include\/ggml-cuda\.h
|
| 161 |
-
-e 's/include\/ggml-kompute\.h
|
| 162 |
-
-e 's/include\/ggml-metal\.h
|
| 163 |
-
-e 's/include\/ggml-rpc\.h
|
| 164 |
-
-e 's/include\/ggml-sycl\.h
|
| 165 |
-
-e 's/include\/ggml-vulkan\.h
|
| 166 |
-
-e 's/examples\/common\.h/examples\/common.h/g' \
|
| 167 |
-
-e 's/examples\/common\.cpp/examples\/common.cpp/g' \
|
| 168 |
-
-e 's/examples\/common-ggml\.h/examples\/common-ggml.h/g' \
|
| 169 |
-
-e 's/examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
|
| 170 |
-
-e 's/LICENSE/LICENSE/g' \
|
| 171 |
-
-e 's/
|
| 172 |
> ggml-src.patch.tmp
|
| 173 |
mv ggml-src.patch.tmp ggml-src.patch
|
| 174 |
|
|
|
|
| 134 |
# LICENSE -> LICENSE
|
| 135 |
# ggml/scripts/gen-authors.sh -> scripts/gen-authors.sh
|
| 136 |
|
| 137 |
+
cat ggml-src.patch | sed -E \
|
| 138 |
+
-e 's/([[:space:]]|[ab]\/)CMakeLists.txt/\1ggml\/CMakeLists.txt/g' \
|
| 139 |
+
-e 's/([[:space:]]|[ab]\/)src\/CMakeLists.txt/\1ggml\/src\/CMakeLists.txt/g' \
|
| 140 |
+
-e 's/([[:space:]]|[ab]\/)cmake\/FindSIMD.cmake/\1ggml\/cmake\/FindSIMD.cmake/g' \
|
| 141 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml\.c/\1ggml\/src\/ggml.c/g' \
|
| 142 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-alloc\.c/\1ggml\/src\/ggml-alloc.c/g' \
|
| 143 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-backend-impl\.h/\1ggml\/src\/ggml-backend-impl.h/g' \
|
| 144 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-backend\.c/\1ggml\/src\/ggml-backend.c/g' \
|
| 145 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-common\.h/\1ggml\/src\/ggml-common.h/g' \
|
| 146 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-cuda\//\1ggml\/src\/ggml-cuda\//g' \
|
| 147 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-cuda\.cu/\1ggml\/src\/ggml-cuda.cu/g' \
|
| 148 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-impl\.h/\1ggml\/src\/ggml-impl.h/g' \
|
| 149 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-kompute\.cpp/\1ggml\/src\/ggml-kompute.cpp/g' \
|
| 150 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-metal\.m/\1ggml\/src\/ggml-metal.m/g' \
|
| 151 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-quants\.c/\1ggml\/src\/ggml-quants.c/g' \
|
| 152 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-quants\.h/\1ggml\/src\/ggml-quants.h/g' \
|
| 153 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-rpc\.cpp/\1ggml\/src\/ggml-rpc.cpp/g' \
|
| 154 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-sycl\.cpp/\1ggml\/src\/ggml-sycl.cpp/g' \
|
| 155 |
+
-e 's/([[:space:]]|[ab]\/)src\/ggml-vulkan\.cpp/\1ggml\/src\/ggml-vulkan.cpp/g' \
|
| 156 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml\.h/\1ggml\/include\/ggml.h/g' \
|
| 157 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-alloc\.h/\1ggml\/include\/ggml-alloc.h/g' \
|
| 158 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-backend\.h/\1ggml\/include\/ggml-backend.h/g' \
|
| 159 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-blas\.h/\1ggml\/include\/ggml-blas.h/g' \
|
| 160 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-cuda\.h/\1ggml\/include\/ggml-cuda.h/g' \
|
| 161 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-kompute\.h/\1ggml\/include\/ggml-kompute.h/g' \
|
| 162 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-metal\.h/\1ggml\/include\/ggml-metal.h/g' \
|
| 163 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-rpc\.h/\1ggml\/include\/ggml-rpc.h/g' \
|
| 164 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-sycl\.h/\1ggml\/include\/ggml-sycl.h/g' \
|
| 165 |
+
-e 's/([[:space:]]|[ab]\/)include\/ggml-vulkan\.h/\1ggml\/include\/ggml-vulkan.h/g' \
|
| 166 |
+
-e 's/([[:space:]]|[ab]\/)examples\/common\.h/examples\/common.h/g' \
|
| 167 |
+
-e 's/([[:space:]]|[ab]\/)examples\/common\.cpp/examples\/common.cpp/g' \
|
| 168 |
+
-e 's/([[:space:]]|[ab]\/)examples\/common-ggml\.h/examples\/common-ggml.h/g' \
|
| 169 |
+
-e 's/([[:space:]]|[ab]\/)examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
|
| 170 |
+
-e 's/([[:space:]]|[ab]\/)LICENSE/LICENSE/g' \
|
| 171 |
+
-e 's/([[:space:]]|[ab]\/)scripts\/gen-authors\.sh/scripts\/gen-authors.sh/g' \
|
| 172 |
> ggml-src.patch.tmp
|
| 173 |
mv ggml-src.patch.tmp ggml-src.patch
|
| 174 |
|
scripts/sync-ggml.last
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
e0cc63261d4b85840e82dba4d40c3e31b8948a32
|