Skip to content

Commit

Permalink
Define THRUST_IGNORE_CUB_VERSION_CHECK for cuda 11
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMitchell committed Nov 2, 2020
1 parent 058ce0c commit b29d6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Utils.cmake
Expand Up @@ -155,7 +155,7 @@ function(xgboost_set_cuda_flags target)
enable_nvtx(${target})
endif (USE_NVTX)

target_compile_definitions(${target} PRIVATE -DXGBOOST_USE_CUDA=1)
target_compile_definitions(${target} PRIVATE -DXGBOOST_USE_CUDA=1 -DTHRUST_IGNORE_CUB_VERSION_CHECK=1)
target_include_directories(${target} PRIVATE ${xgboost_SOURCE_DIR}/cub/)

if (MSVC)
Expand Down

0 comments on commit b29d6b3

Please sign in to comment.