File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,9 @@ jobs:
150150 gpu :
151151 type : string
152152 default : " OFF"
153+ raft :
154+ type : string
155+ default : " OFF"
153156 executor : << parameters.exec >>
154157 environment :
155158 OMP_NUM_THREADS : 10
@@ -187,6 +190,7 @@ jobs:
187190 -DBUILD_TESTING=ON \
188191 -DBUILD_SHARED_LIBS=OFF \
189192 -DFAISS_ENABLE_GPU=<< parameters.gpu >> \
193+ -DFAISS_ENABLE_RAFT=<< parameters.raft >> \
190194 -DFAISS_OPT_LEVEL=<< parameters.opt_level >> \
191195 -DFAISS_ENABLE_C_API=ON \
192196 -DPYTHON_EXECUTABLE=$(which python) \
@@ -259,6 +263,13 @@ workflows:
259263 gpu : " ON"
260264 requires :
261265 - Linux x86_64 (cmake)
266+ - build_cmake :
267+ name : Linux x86_64 GPU w/ RAFT (cmake)
268+ exec : linux-x86_64-gpu
269+ gpu : " ON"
270+ raft : " ON"
271+ requires :
272+ - Linux x86_64 (cmake)
262273 - build_conda :
263274 name : Linux x86_64 (conda)
264275 exec : linux-x86_64-cpu
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ include(rapids-export)
3535include (rapids-find )
3636
3737rapids_cuda_init_architectures(faiss)
38+ rapids_cuda_init_architectures(pyfaiss)
39+ rapids_cuda_init_architectures(faiss_c_library)
3840endif ()
3941
4042project (faiss
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ file(GLOB FAISS_C_API_GPU_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
1616faiss_install_headers("${FAISS_C_API_GPU_HEADERS} " c_api/gpu)
1717
1818find_package (CUDAToolkit REQUIRED)
19- target_link_libraries (faiss_c PUBLIC CUDA::cudart CUDA::cublas)
19+ target_link_libraries (faiss_c PUBLIC CUDA::cudart CUDA::cublas $<$< BOOL : ${FAISS_ENABLE_RAFT} >:raft::raft> $<$< BOOL : ${FAISS_ENABLE_RAFT} >:nvidia::cutlass::cutlass> )
2020
2121add_executable (example_gpu_c EXCLUDE_FROM_ALL example_gpu_c.c)
2222target_link_libraries (example_gpu_c PRIVATE faiss_c)
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ endif()
9494
9595if (FAISS_ENABLE_GPU)
9696 find_package (CUDAToolkit REQUIRED)
97- target_link_libraries (swigfaiss PRIVATE CUDA::cudart)
98- target_link_libraries (swigfaiss_avx2 PRIVATE CUDA::cudart)
97+ target_link_libraries (swigfaiss PRIVATE CUDA::cudart $<$< BOOL : ${FAISS_ENABLE_RAFT} >:raft::raft> $<$< BOOL : ${FAISS_ENABLE_RAFT} >:nvidia::cutlass::cutlass> )
98+ target_link_libraries (swigfaiss_avx2 PRIVATE CUDA::cudart $<$< BOOL : ${FAISS_ENABLE_RAFT} >:raft::raft> $<$< BOOL : ${FAISS_ENABLE_RAFT} >:nvidia::cutlass::cutlass> )
9999endif ()
100100
101101find_package (OpenMP REQUIRED)
You can’t perform that action at this time.
0 commit comments