summaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index a9e1ea9b..bcec200f 100644
--- a/ggml.c
+++ b/ggml.c
@@ -19638,6 +19638,14 @@ int ggml_cpu_has_avx(void) {
#endif
}
+int ggml_cpu_has_avx_vnni(void) {
+#if defined(__AVXVNNI__)
+ return 1;
+#else
+ return 0;
+#endif
+}
+
int ggml_cpu_has_avx2(void) {
#if defined(__AVX2__)
return 1;