cmake : don't fail on GGML_CPU=OFF (llama/11457)

This commit is contained in:
someone13574 2025-01-28 09:15:34 -05:00 committed by Georgi Gerganov
parent 22e3df0afa
commit b2cfef655b

View File

@ -308,7 +308,7 @@ if (GGML_CPU_ALL_VARIANTS)
# MSVC doesn't support AMX
ggml_add_cpu_backend_variant(sapphirerapids AVX F16C AVX2 FMA AVX512 AVX512_VBMI AVX512_VNNI AVX512_BF16 AMX_TILE AMX_INT8)
endif()
else ()
elseif (GGML_CPU)
ggml_add_cpu_backend_variant_impl("")
endif()