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 dbf981c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/data/ellpack_page.cu
Expand Up @@ -177,7 +177,7 @@ struct TupleScanOp {
// Change the value type of thrust discard iterator so we can use it with cub
template <typename T>
class TypedDiscard : public thrust::discard_iterator<T> {
public:
public:
using value_type = T; // NOLINT
};

Expand Down

0 comments on commit dbf981c

Please sign in to comment.