From 335c894ed5b2ada43f95ad324bd775dacbc8e060 Mon Sep 17 00:00:00 2001 From: akashsha1 <113050768+akashsha1@users.noreply.github.com> Date: Sun, 26 Jan 2025 21:53:53 -0800 Subject: [PATCH] Update init-faiss.cmake Remove an AND from avx512spr check. Signed-off-by: akashsha1 <113050768+akashsha1@users.noreply.github.com> --- jni/cmake/init-faiss.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/cmake/init-faiss.cmake b/jni/cmake/init-faiss.cmake index 3cb90b767..a6c4f5aaa 100644 --- a/jni/cmake/init-faiss.cmake +++ b/jni/cmake/init-faiss.cmake @@ -111,7 +111,7 @@ endif() if(NOT DEFINED AVX512_SPR_ENABLED) # Check if the system is Intel(R) Sapphire Rapids or a newer-generation processor execute_process(COMMAND bash -c "lscpu | grep -q 'GenuineIntel' && lscpu | grep -i 'avx512_fp16' | grep -i 'avx512_bf16' | grep -i 'avx512_vpopcntdq'" OUTPUT_VARIABLE SPR_FLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) - if (AND NOT "${SPR_FLAGS}" STREQUAL "") + if (NOT "${SPR_FLAGS}" STREQUAL "") set(AVX512_SPR_ENABLED true) else() set(AVX512_SPR_ENABLED false)