Skip to content

Commit

Permalink
Test gpu build, isolating CMake steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ramilbakhshyiev committed May 2, 2024
1 parent e123323 commit ad7141a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ option(FAISS_ENABLE_RAFT "Enable RAFT for GPU indexes." OFF)
option(FAISS_ENABLE_PYTHON "Build Python extension." ON)
option(FAISS_ENABLE_C_API "Build C API." OFF)

#if(FAISS_ENABLE_GPU)
# set(CMAKE_CUDA_HOST_COMPILER ${CMAKE_CXX_COMPILER})
# enable_language(CUDA)
#endif()
if(FAISS_ENABLE_GPU)
set(CMAKE_CUDA_HOST_COMPILER ${CMAKE_CXX_COMPILER})
enable_language(CUDA)
endif()

if(FAISS_ENABLE_RAFT AND NOT TARGET raft::raft)
find_package(raft COMPONENTS compiled distributed)
Expand Down

0 comments on commit ad7141a

Please sign in to comment.