I run the following command to install faiss directly from source (I cloned https://github.com/facebookresearch/faiss) and once inside the folder I run:
cmake -B build .
I get the error below:
-- The C compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter
-- Configuring done (7.3s)
CMake Error at faiss/gpu/CMakeLists.txt:263 (target_link_libraries):
Target "faiss" links to:
CUDA::cublas
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Error at faiss/gpu/CMakeLists.txt:264 (target_link_libraries):
Target "faiss_avx2" links to:
CUDA::cublas
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
-- Generating done (0.2s)
CMake Generate step failed. Build files cannot be regenerated correctly.