From 21882696d51d9031ecec27b6c1da607afdd5d7ac Mon Sep 17 00:00:00 2001 From: yuejiaointel Date: Tue, 7 Apr 2026 12:59:29 -0700 Subject: [PATCH] skip LVQ/LeanVec examples in public-only integration tests The public-only and IVF builds don't include LVQ/LeanVec support, so the FAISS LVQ/LeanVec examples crash with "storage kind not compatible". Skip them based on SUFFIX. --- .github/scripts/test-cpp-runtime-bindings.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/scripts/test-cpp-runtime-bindings.sh b/.github/scripts/test-cpp-runtime-bindings.sh index 78b22048..63b6bcd7 100644 --- a/.github/scripts/test-cpp-runtime-bindings.sh +++ b/.github/scripts/test-cpp-runtime-bindings.sh @@ -58,8 +58,10 @@ echo " FAISS C++ tests: " echo "-----------------------------------------------" echo " FAISS-SVS C++ examples: " make 10-SVS-Vamana-LVQ 11-SVS-Vamana-LeanVec -# Check if running on Intel hardware (LVQ/LeanVec require Intel-specific instructions) -if grep -q "GenuineIntel" /proc/cpuinfo; then +# LVQ/LeanVec examples require both Intel hardware and LVQ support in the library +if [[ "${SUFFIX}" == *"public-only"* ]] || [[ "${SUFFIX}" == *"ivf"* ]]; then + echo "Skipping LVQ/LeanVec examples (not available in${SUFFIX} build)" +elif grep -q "GenuineIntel" /proc/cpuinfo; then $RUN_PREFIX ./tutorial/cpp/10-SVS-Vamana-LVQ $RUN_PREFIX ./tutorial/cpp/11-SVS-Vamana-LeanVec else @@ -89,7 +91,9 @@ PYTHONPATH=../build/faiss/python/build/lib/ OMP_NUM_THREADS=4 python -m unittest echo "-----------------------------------------------" echo " FAISS-SVS python examples: " cd ../tutorial/python/ -if grep -q "GenuineIntel" /proc/cpuinfo; then +if [[ "${SUFFIX}" == *"public-only"* ]] || [[ "${SUFFIX}" == *"ivf"* ]]; then + echo "Skipping SVS python example (LVQ not available in${SUFFIX} build)" +elif grep -q "GenuineIntel" /proc/cpuinfo; then PYTHONPATH=../../build/faiss/python/build/lib/ OMP_NUM_THREADS=4 $RUN_PREFIX python 11-SVS.py else echo "Non-Intel CPU detected - SVS python example expected to fail"