suppport for raft gpu (#22790)

Signed-off-by: Yusheng.Ma <Yusheng.Ma@zilliz.com>
pull/22175/head
presburger 2023-03-17 11:59:54 +08:00 committed by GitHub
parent a085af931d
commit 5841a3707b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if(MILVUS_GPU_VERSION STREQUAL "ON")
project(core CXX C CUDA)
else()
project(core CXX C)
endif()
include_directories(${MILVUS_ENGINE_SRC})
include_directories(${MILVUS_THIRDPARTY_SRC})

View File

@ -11,7 +11,7 @@
# or implied. See the License for the specific language governing permissions and limitations under the License.
#-------------------------------------------------------------------------------
set( KNOWHERE_VERSION v2.0.0 )
set( KNOWHERE_VERSION v2.1.0 )
message(STATUS "Building knowhere-${KNOWHERE_SOURCE_VER} from source")
message(STATUS ${CMAKE_BUILD_TYPE})
@ -24,8 +24,10 @@ endif ()
if ( MILVUS_GPU_VERSION STREQUAL "ON" )
set(USE_CUDA ON CACHE BOOL "" FORCE )
set(WITH_RAFT ON CACHE BOOL "" FORCE )
endif ()
set( CMAKE_PREFIX_PATH ${CONAN_BOOST_ROOT} )
FetchContent_Declare(
knowhere