Skip to content

Commit

Permalink
Trying CMAKE_INCLUDE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ramilbakhshyiev committed May 19, 2024
1 parent 5ee0ef2 commit 855fa8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion conda/faiss-gpu/build-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ cmake -B _build \
-DFAISS_ENABLE_PYTHON=OFF \
-DBLA_VENDOR=Intel10_64lp \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
-DCMAKE_BUILD_TYPE=Release .

make -C _build -j$(nproc) faiss faiss_avx2 faiss_avx512
Expand Down
3 changes: 3 additions & 0 deletions faiss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ endif()
target_compile_definitions(faiss_avx2 PRIVATE FINTEGER=int)
target_compile_definitions(faiss_avx512 PRIVATE FINTEGER=int)

find_package(libc REQUIRED)
append(LIST CMAKE_INCLUDE_PATH ${LIBC_INCLUDE_DIRS})

find_package(OpenMP REQUIRED)
target_link_libraries(faiss PRIVATE OpenMP::OpenMP_CXX)
target_link_libraries(faiss_avx2 PRIVATE OpenMP::OpenMP_CXX)
Expand Down

0 comments on commit 855fa8f

Please sign in to comment.