asg017 / sqlite-vss

A SQLite extension for efficient vector search, based on Faiss!
MIT License
1.59k stars 59 forks source link

Make `faiss_avx2` optional #14

Open asg017 opened 1 year ago

asg017 commented 1 year ago

Not all computers support avx2, so we should expose some compile-time option to disable it, like -DSQLITE_VSS_DISABLE_AVX2. Users have to manually edit sqlite-vss/CMakeLists.txt, which isn't great.

metaskills commented 11 months ago

So basically I added this to my build step.

sed -i 's/faiss_avx2/faiss/g' CMakeLists.txt
sed -i 's/libfaiss_avx2/libfaiss/g' Makefile

Would the idea be that you add something like patch-openmp?