diff options
author | automaticcat <daogiatuank54@gmail.com> | 2023-12-30 15:07:48 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 10:07:48 +0200 |
commit | 24a447e20af425fa44cf10feaa632b6bb596c80f (patch) | |
tree | 66612870e12dd4be3b05f47371c3a0c5e8346da7 /ggml.c | |
parent | a20f3c7465d6d1b33767757c2760643b799a81bf (diff) |
ggml : add ggml_cpu_has_avx_vnni() (#4589)
* feat: add avx_vnni based on intel documents
* ggml: add avx vnni based on intel document
* llama: add avx vnni information display
* docs: add more details about using oneMKL and oneAPI for intel processors
* docs: add more details about using oneMKL and oneAPI for intel processors
* docs: add more details about using oneMKL and oneAPI for intel processors
* docs: add more details about using oneMKL and oneAPI for intel processors
* docs: add more details about using oneMKL and oneAPI for intel processors
* Update ggml.c
Fix indentation upgate
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
---------
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Diffstat (limited to 'ggml.c')
-rw-r--r-- | ggml.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |