This commit is contained in:
Masa-tam 2026-08-15 14:12:43 +08:00 committed by GitHub
commit 800014ed32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
endif()
if (GGML_AVX_VNNI)
list(APPEND ARCH_DEFINITIONS __AVXVNNI__ GGML_AVX_VNNI)
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
list(APPEND ARCH_FLAGS -mavxvnni)
endif()
endif()
if (GGML_BMI2)
# MSVC does not define macro __BMI2__