From 6f4409365a03e1364f2b86f616befcbf090ab2ff Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Wed, 10 Jan 2024 18:26:12 +0200 Subject: [PATCH] enable AVX2,AVX512,AVX512 for fat runtimes on x86 --- cmake/cflags-x86.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/cflags-x86.cmake b/cmake/cflags-x86.cmake index 7b9cbf81..5ae21ee4 100644 --- a/cmake/cflags-x86.cmake +++ b/cmake/cflags-x86.cmake @@ -26,6 +26,9 @@ if (NOT FAT_RUNTIME) set(ARCH_CXX_FLAGS "-msse4.2") endif() else() + set(BUILD_AVX512VBMI ON) + set(BUILD_AVX512 ON) + set(BUILD_AVX2 ON) set(ARCH_C_FLAGS "-msse4.2") set(ARCH_CXX_FLAGS "-msse4.2") endif() @@ -129,5 +132,3 @@ else (NOT FAT_RUNTIME) message(FATAL_ERROR "A minimum of SSE4.2 compiler support is required") endif () endif () - -