From d3dd5f209b76d6365219f4e648dbe79e8cc2efe5 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 24 Jul 2024 22:20:51 -0700 Subject: [PATCH] Add a comment to cmake/Utils.cmake Co-authored-by: jakirkham --- cmake/Utils.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake index e52e5b42c465..3718e9185a72 100644 --- a/cmake/Utils.cmake +++ b/cmake/Utils.cmake @@ -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)