[BUG] Enable "SVE" opt level for Faiss on Grace CPU
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 854
- Forks
- 236
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 62
Description
Describe the bug
The FAISS_OPT_LEVEL isn't set to "sve" on Grace CPU which has "SVE" CPU feature. However, the "avx2" opt level is set for AVX2 enabled platform.
Expected behavior
Enable SVE optimizations when the CPU supports it.
Additional context
According to the options listed here CMakeLists.txt#60 FAISS does support SVE.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cpp/cmake/thirdparty/get_faiss.cmake at lines 44-47, then compare the supported FAISS options in the upstream CMakeLists.txt at line 60. Verify that FAISS_OPT_LEVEL is set to "sve" for Grace CPUs with SVE support, and confirm the resulting configuration or build succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100