Commit 9e03ef0 1 parent dd4cec2 commit 9e03ef0 Copy full SHA for 9e03ef0
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ option(FAISS_OPT_LEVEL "" "generic")
62
62
option (FAISS_ENABLE_GPU "Enable support for GPU indexes." ON )
63
63
option (FAISS_ENABLE_CUVS "Enable cuVS for GPU indexes." OFF )
64
64
option (FAISS_ENABLE_ROCM "Enable ROCm for GPU indexes." OFF )
65
+ option (FAISS_ENABLE_MKL "Enable MKL." ON )
65
66
option (FAISS_ENABLE_PYTHON "Build Python extension." ON )
66
67
option (FAISS_ENABLE_C_API "Build C API." OFF )
67
68
option (FAISS_ENABLE_EXTRAS "Build extras like benchmarks and demos" ON )
Original file line number Diff line number Diff line change @@ -372,7 +372,9 @@ target_link_libraries(faiss_avx512 PRIVATE OpenMP::OpenMP_CXX)
372
372
target_link_libraries (faiss_avx512_spr PRIVATE OpenMP::OpenMP_CXX)
373
373
target_link_libraries (faiss_sve PRIVATE OpenMP::OpenMP_CXX)
374
374
375
- find_package (MKL)
375
+ if (FAISS_ENABLE_MKL)
376
+ find_package (MKL)
377
+ endif ()
376
378
if (MKL_FOUND)
377
379
target_link_libraries (faiss PRIVATE ${MKL_LIBRARIES} )
378
380
target_link_libraries (faiss_avx2 PRIVATE ${MKL_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments