aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-07-11 22:53:34 +0300
committerGitHub <noreply@github.com>2023-07-11 22:53:34 +0300
commit20d7740a9b45f6e5b247fa3738fdda35e18c2e8a (patch)
treec64588319bc093347062551e2871100d853e3861 /tests
parent5bf2a2771886ee86137e01dbc7492f78fb392066 (diff)
ggml : sync (abort callback, mul / add broadcast, fix alibi) (#2183)
Diffstat (limited to 'tests')
-rw-r--r--tests/test-grad0.c2
-rw-r--r--tests/test-opt.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-grad0.c b/tests/test-grad0.c
index da4001c..01467bc 100644
--- a/tests/test-grad0.c
+++ b/tests/test-grad0.c
@@ -10,7 +10,9 @@
#pragma warning(disable: 4244 4267) // possible loss of data
#endif
+#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wdouble-promotion"
+#endif
#define MAX_NARGS 3
diff --git a/tests/test-opt.c b/tests/test-opt.c
index e928a7d..5531814 100644
--- a/tests/test-opt.c
+++ b/tests/test-opt.c
@@ -7,7 +7,9 @@
#define MAX_NARGS 2
+#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wdouble-promotion"
+#endif
//
// logging