Skip to content

Commit

Permalink
Add a comment to cmake/Utils.cmake
Browse files Browse the repository at this point in the history
Co-authored-by: jakirkham <jakirkham@gmail.com>
  • Loading branch information
hcho3 and jakirkham authored Jul 25, 2024
1 parent ab837a3 commit d3dd5f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ function(xgboost_set_cuda_flags target)
target_compile_definitions(${target} PRIVATE -DXGBOOST_USE_NVTX=1)
endif()

# Use CCCL we find before CUDA Toolkit to make sure we get newer headers as intended
# The CUDA Toolkit includes its own copy of CCCL that often lags the latest releases (and would be picked up otherwise)
target_link_libraries(${target}
PRIVATE CCCL::CCCL CUDA::cudart_static)
target_compile_definitions(${target} PRIVATE -DXGBOOST_USE_CUDA=1)
Expand Down

0 comments on commit d3dd5f2

Please sign in to comment.