@@ -59,6 +59,7 @@ while read c; do
5959 src/ggml* .h \
6060 src/ggml* .c \
6161 src/ggml* .cpp \
62+ src/gguf* .cpp \
6263 src/ggml-blas/* \
6364 src/ggml-cann/* \
6465 src/ggml-cpu/* \
@@ -67,10 +68,12 @@ while read c; do
6768 src/ggml-kompute/* \
6869 src/ggml-metal/* \
6970 src/ggml-musa/* \
71+ src/ggml-opencl/* \
7072 src/ggml-rpc/* \
7173 src/ggml-sycl/* \
7274 src/ggml-vulkan/* \
7375 include/ggml* .h \
76+ include/gguf* .h \
7477 examples/common.h \
7578 examples/common.cpp \
7679 examples/common-ggml.h \
@@ -109,6 +112,7 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
109112 # src/ggml*.c -> ggml/src/ggml*.c
110113 # src/ggml*.cpp -> ggml/src/ggml*.cpp
111114 # src/ggml*.h -> ggml/src/ggml*.h
115+ # src/gguf*.cpp -> ggml/src/gguf*.cpp
112116 # src/ggml-blas/* -> ggml/src/ggml-blas/*
113117 # src/ggml-cann/* -> ggml/src/ggml-cann/*
114118 # src/ggml-cpu/* -> ggml/src/ggml-cpu/*
@@ -117,11 +121,13 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
117121 # src/ggml-kompute/* -> ggml/src/ggml-kompute/*
118122 # src/ggml-metal/* -> ggml/src/ggml-metal/*
119123 # src/ggml-musa/* -> ggml/src/ggml-musa/*
124+ # src/ggml-opencl/* > ggml/src/ggml-opencl/*
120125 # src/ggml-rpc/* -> ggml/src/ggml-rpc/*
121126 # src/ggml-sycl/* -> ggml/src/ggml-sycl/*
122127 # src/ggml-vulkan/* -> ggml/src/ggml-vulkan/*
123128 #
124129 # include/ggml*.h -> ggml/include/ggml*.h
130+ # include/gguf*.h -> ggml/include/gguf*.h
125131 #
126132 # examples/common.h -> examples/common.h
127133 # examples/common.cpp -> examples/common.cpp
@@ -138,6 +144,7 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
138144 -e ' s/([[:space:]]|[ab]\/)src\/ggml(.*)\.c/\1ggml\/src\/ggml\2.c/g' \
139145 -e ' s/([[:space:]]|[ab]\/)src\/ggml(.*)\.cpp/\1ggml\/src\/ggml\2.cpp/g' \
140146 -e ' s/([[:space:]]|[ab]\/)src\/ggml(.*)\.h/\1ggml\/src\/ggml\2.h/g' \
147+ -e ' s/([[:space:]]|[ab]\/)src\/gguf(.*)\.cpp/\1ggml\/src\/gguf\2.cpp/g' \
141148 -e ' s/([[:space:]]|[ab]\/)src\/ggml-blas\//\1ggml\/src\/ggml-blas\//g' \
142149 -e ' s/([[:space:]]|[ab]\/)src\/ggml-cann\//\1ggml\/src\/ggml-cann\//g' \
143150 -e ' s/([[:space:]]|[ab]\/)src\/ggml-cpu\//\1ggml\/src\/ggml-cpu\//g' \
@@ -146,10 +153,12 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
146153 -e ' s/([[:space:]]|[ab]\/)src\/ggml-kompute\//\1ggml\/src\/ggml-kompute\//g' \
147154 -e ' s/([[:space:]]|[ab]\/)src\/ggml-metal\//\1ggml\/src\/ggml-metal\//g' \
148155 -e ' s/([[:space:]]|[ab]\/)src\/ggml-musa\//\1ggml\/src\/ggml-musa\//g' \
156+ -e ' s/([[:space:]]|[ab]\/)src\/ggml-opencl\//\1ggml\/src\/ggml-opencl\//g' \
149157 -e ' s/([[:space:]]|[ab]\/)src\/ggml-rpc\//\1ggml\/src\/ggml-rpc\//g' \
150158 -e ' s/([[:space:]]|[ab]\/)src\/ggml-sycl\//\1ggml\/src\/ggml-sycl\//g' \
151159 -e ' s/([[:space:]]|[ab]\/)src\/ggml-vulkan\//\1ggml\/src\/ggml-vulkan\//g' \
152160 -e ' s/([[:space:]]|[ab]\/)include\/ggml(.*)\.h/\1ggml\/include\/ggml\2.h/g' \
161+ -e ' s/([[:space:]]|[ab]\/)include\/gguf(.*)\.h/\1ggml\/include\/gguf\2.h/g' \
153162 -e ' s/(^[[:space:]]|[ab]\/)examples\/common\.h/\1examples\/common.h/g' \
154163 -e ' s/(^[[:space:]]|[ab]\/)examples\/common\.cpp/\1examples\/common.cpp/g' \
155164 -e ' s/(^[[:space:]]|[ab]\/)examples\/common-ggml\.h/\1examples\/common-ggml.h/g' \
0 commit comments