Remove linking RMM library. (#6146)
* Remove linking RMM library. * RMM is now header only. * Remove remaining reference.
This commit is contained in:
parent
452ac8ea62
commit
e033caa3ba
@ -13,13 +13,8 @@ if (PLUGIN_DENSE_PARSER)
|
|||||||
endif (PLUGIN_DENSE_PARSER)
|
endif (PLUGIN_DENSE_PARSER)
|
||||||
|
|
||||||
if (PLUGIN_RMM)
|
if (PLUGIN_RMM)
|
||||||
find_path(RMM_INCLUDE "rmm"
|
find_path(RMM_INCLUDE "rmm" HINTS "$ENV{RMM_ROOT}/include")
|
||||||
HINTS "$ENV{RMM_ROOT}/include")
|
if (NOT RMM_INCLUDE)
|
||||||
|
|
||||||
find_library(RMM_LIBRARY "rmm"
|
|
||||||
HINTS "$ENV{RMM_ROOT}/lib" "$ENV{RMM_ROOT}/build")
|
|
||||||
|
|
||||||
if ((NOT RMM_LIBRARY) OR (NOT RMM_INCLUDE))
|
|
||||||
message(FATAL_ERROR "Could not locate RMM library")
|
message(FATAL_ERROR "Could not locate RMM library")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
@ -27,7 +22,6 @@ if (PLUGIN_RMM)
|
|||||||
message(STATUS "RMM: RMM_INCLUDE set to ${RMM_INCLUDE}")
|
message(STATUS "RMM: RMM_INCLUDE set to ${RMM_INCLUDE}")
|
||||||
|
|
||||||
target_include_directories(objxgboost PUBLIC ${RMM_INCLUDE})
|
target_include_directories(objxgboost PUBLIC ${RMM_INCLUDE})
|
||||||
target_link_libraries(objxgboost PUBLIC ${RMM_LIBRARY} cuda)
|
|
||||||
target_compile_definitions(objxgboost PUBLIC -DXGBOOST_USE_RMM=1)
|
target_compile_definitions(objxgboost PUBLIC -DXGBOOST_USE_RMM=1)
|
||||||
endif (PLUGIN_RMM)
|
endif (PLUGIN_RMM)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user