File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -290,9 +290,9 @@ if (GGML_CPU_ALL_VARIANTS)
290290 ggml_add_cpu_backend_variant(haswell AVX F16C AVX2 FMA)
291291 ggml_add_cpu_backend_variant(skylakex AVX F16C AVX2 FMA AVX512)
292292 ggml_add_cpu_backend_variant(icelake AVX F16C AVX2 FMA AVX512 AVX512_VBMI AVX512_VNNI)
293+ ggml_add_cpu_backend_variant(alderlake AVX F16C AVX2 FMA AVX_VNNI)
293294 if (NOT MSVC )
294- # MSVC doesn't support AVX-VNNI or AMX
295- ggml_add_cpu_backend_variant(alderlake AVX F16C AVX2 FMA AVX_VNNI)
295+ # MSVC doesn't support AMX
296296 ggml_add_cpu_backend_variant(sapphirerapids AVX F16C AVX2 FMA AVX512 AVX512_VBMI AVX512_VNNI AVX512_BF16 AMX_TILE AMX_INT8)
297297 endif ()
298298else ()
Original file line number Diff line number Diff line change @@ -215,8 +215,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
215215 list (APPEND ARCH_DEFINITIONS GGML_SSE42)
216216 endif ()
217217 if (GGML_AVX_VNNI)
218- # MSVC generates AVX512 with AVX-VNNI intrinsics even with /arch:AVX2
219- #list(APPEND ARCH_DEFINITIONS __AVXVNNI__ GGML_AVX_VNNI)
218+ list (APPEND ARCH_DEFINITIONS __AVXVNNI__ GGML_AVX_VNNI)
220219 endif ()
221220 else ()
222221 if (GGML_NATIVE)
You can’t perform that action at this time.
0 commit comments