← Back to Pull requests

Address all CCCL deprecations #12666

Closed
unknown closed this pull request without merging on Oct 08, 2026 21:55 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 01:18 UTC
Author

Replace the umbrella CUB header <cub/cub.cuh> with individual headers. This fixes the deprecation warning

warning: <cub/cub.cuh> is an umbrella header that includes all CUB headers and can increase compile times.
To reduce compile times, replace <cub/cub.cuh> with headers for the CUB features used
(e.g., <cub/device/device_reduce.cuh> for cub::DeviceReduce). 

Replace deprecated CUB APIs. The following deprecated APIs from CUB have been replaced.

| Deprecated API | Replacement |
|---|---|
| cub::CachingDeviceAllocator | cuda::device_memory_pool, with a separate pool for each device |
| cub::DispatchRadixSort | cub::DeviceRadixSort::SortPairs / SortPairsDescending |
| cub::DispatchSegmentedRadixSort | cub::DeviceSegmentedRadixSort::SortKeys / SortPairs |
| cub::DispatchScan | cub::DeviceScan::InclusiveScan |

Use named functor AccumulateLeafSum to work around compiler warning about uninitialized data.
NVCC throws the following warning, probably a false positive:

FAILED: [code=1] src/CMakeFiles/objxgboost.dir/tree/gpu_hist/leaf_sum.cu.o
/home/phcho/miniforge3/envs/rmm_test/bin/nvcc -forward-unknown-to-host-compiler -ccbin=/home/phcho/miniforge3/envs/rmm_test/bin/x86_64-conda-linux-gnu-c++ -DCCCL_DISABLE_PDL -DCUB_DISABLE_NAMESPACE_MAGIC -DCUB_IGNORE_NAMESPACE_MAGIC_ERROR -DDMLC_CORE_USE_CMAKE -DDMLC_LOG_CUSTOMIZE=1 -DDMLC_USE_CXX11=1 -DDMLC_USE_CXX14=1 -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA -DTHRUST_DISABLE_ABI_NAMESPACE -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_IGNORE_ABI_NAMESPACE_ERROR -DXGBOOST_BUILTIN_PREFETCH_PRESENT=1 -DXGBOOST_MM_PREFETCH_PRESENT=1 -DXGBOOST_USE_CUDA=1 -DXGBOOST_USE_NCCL=1 -DXGBOOST_USE_RMM=1 -D_MWAITXINTRIN_H_INCLUDED -D__USE_XOPEN2K8 -I/home/phcho/Desktop/xgboost/include -I/home/phcho/Desktop/xgboost/dmlc-core/include -I/home/phcho/Desktop/xgboost/build/dmlc-core/include -I/home/phcho/miniforge3/envs/rmm_test/include/rapids -isystem /home/phcho/miniforge3/envs/rmm_test/targets/x86_64-linux/include -isystem /home/phcho/miniforge3/envs/rmm_test/targets/x86_64-linux/include/cccl -O3 -DNDEBUG -std=c++17 "--generate-code=arch=compute_75,code=[sm_75]" "--generate-code=arch=compute_75,code=[compute_75]" -Xcompiler=-fPIC -Xcompiler=-fvisibility=hidden -Xcompiler=-Wall -Xcompiler=-Wextra -Xcompiler=-Wno-expansion-to-defined -Werror=cross-execution-space-call --expt-extended-lambda --expt-relaxed-constexpr -Xfatbin=-compress-all --default-stream per-thread -Xcompiler=-fopenmp -Werror all-warnings -MD -MT src/CMakeFiles/objxgboost.dir/tree/gpu_hist/leaf_sum.cu.o -MF src/CMakeFiles/objxgboost.dir/tree/gpu_hist/leaf_sum.cu.o.d -x cu -c /home/phcho/Desktop/xgboost/src/tree/gpu_hist/leaf_sum.cu -o src/CMakeFiles/objxgboost.dir/tree/gpu_hist/leaf_sum.cu.o
...
/home/phcho/Desktop/xgboost/src/tree/gpu_hist/leaf_sum.cu:79:53:
nvcc_internal_extended_lambda_implementation:357:85: error: <super long template>::data' may be used uninitialized [-Werror=maybe-uninitialized]
/home/phcho/Desktop/xgboost/src/tree/gpu_hist/leaf_sum.cu: In function 'void xgboost::tree::cuda_impl::LeafGradSum(const xgboost::Context*, const std::vector<xgboost::tree::LeafInfo>&, xgboost::common::Span<const xgboost::tree::GradientQuantiser>, xgboost::common::Span<const unsigned int>, xgboost::linalg::MatrixView<const xgboost::detail::GradientPairInternal<float> >, xgboost::linalg::MatrixView<xgboost::GradientPairInt64>)':
/home/phcho/Desktop/xgboost/src/tree/gpu_hist/leaf_sum.cu:79:53: note: '<anonymous>' declared here
   79 |     dh::safe_cuda(cub::DeviceSegmentedReduce::Sum(nullptr, n_bytes, it, out_it, h_leaves.size(),
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                          

Diff: 476 lines (+357 / -119) across 5 files Reviewer: chyunsu3 Review duration: 2676m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.46) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 476 lines diff across 5 files
0.46
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.369
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12666"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 45.8% (MEDIUM) · Higher = larger blast radius
45.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.8% · Safe to merge
19.8%
Repository