aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEve <139727413+netrunnereve@users.noreply.github.com>2023-08-02 04:06:19 -0400
committerGitHub <noreply@github.com>2023-08-02 11:06:19 +0300
commit81844fbcfd93a162b7aeaea9e4f2ab1358f7f97e (patch)
treea191f51cb59df2bef37f0b892b93e74cb562599d /scripts
parenta312193e184b919047f33a5e844d846c5538dbe6 (diff)
tests : Fix compilation warnings (Linux/GCC) (#2451)
* fix hellaswag print format, cast away warning in test-double-float * c++11 cannot use designated initializers * add static to test-grad0.c internal functions * use memcpy in test-double-float.c * port c tests to c++ * use initializer list for ggml_init_params
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sync-ggml.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sync-ggml.sh b/scripts/sync-ggml.sh
index 02ea6ec..3d13e85 100755
--- a/scripts/sync-ggml.sh
+++ b/scripts/sync-ggml.sh
@@ -10,5 +10,5 @@ cp -rpv ../ggml/src/ggml-metal.m ./ggml-metal.m
cp -rpv ../ggml/src/ggml-metal.metal ./ggml-metal.metal
cp -rpv ../ggml/include/ggml/ggml.h ./ggml.h
-cp -rpv ../ggml/tests/test-opt.c ./tests/test-opt.c
-cp -rpv ../ggml/tests/test-grad0.c ./tests/test-grad0.c
+cp -rpv ../ggml/tests/test-opt.cpp ./tests/test-opt.cpp
+cp -rpv ../ggml/tests/test-grad0.cpp ./tests/test-grad0.cpp