Repository navigation
Labels
needs triageIssues that require the team's attention
Description
Is this a duplicate?
- I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct
Type of Bug
Compile-time Error
Component
CUB
Describe the bug
I am running into the following build failure while building for sm_60:
$PREFIX/include/rapids/cub/agent/agent_find.cuh(177): error: __nv_atomic_* functions are not supported on arch < sm_60.
__nv_atomic_load(found_pos_ptr, &temp_storage.global_result, __NV_ATOMIC_RELAXED, __NV_THREAD_SCOPE_DEVICE);
^
detected during:
instantiation of "void cub::detail::find::agent_t<AgentFindPolicy, InputIteratorT, OffsetT, PredicateT>::Process() [with AgentFindPolicy=cub::detail::find::agent_find_policy_t<128, 16, xgboost::FeatureType, 4, cub::LOAD_LDG, cub::detail::MemBoundScaling<128, 16, xgboost::FeatureType>>, InputIteratorT=const xgboost::FeatureType *, OffsetT=unsigned long long, PredicateT=xgboost::common::IsCatOp]" at line 59 of $PREFIX/include/rapids/cub/device/dispatch/dispatch_find.cuh
instantiation of "void cub::detail::find::find_kernel<ChainedPolicyT,IteratorT,OffsetT,PredicateT>(IteratorT, OffsetT, OffsetT *, PredicateT) [with ChainedPolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t, IteratorT=const xgboost::FeatureType *, OffsetT=unsigned long long, PredicateT=xgboost::common::IsCatOp]" at line 117 of $PREFIX/include/rapids/cub/device/dispatch/dispatch_find.cuh
instantiation of "cudaError_t cub::detail::find::dispatch_t<InputIteratorT, OutputIteratorT, OffsetT, PredicateT, PolicyHub>::Invoke<ActivePolicyT>() [with InputIteratorT=thrust::device_ptr<const xgboost::FeatureType>, OutputIteratorT=unsigned long long *, OffsetT=unsigned long long, PredicateT=xgboost::common::IsCatOp, PolicyHub=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>, ActivePolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t]" at line 846 of $PREFIX/include/rapids/cub/util_device.cuh
instantiation of "cudaError_t cub::ChainedPolicy<PolicyPtxVersion, PolicyT, PrevPolicyT>::find_and_invoke_policy<DevicePtxVersion,FunctorT>(FunctorT &) [with PolicyPtxVersion=300, PolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t, PrevPolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t, DevicePtxVersion=500, FunctorT=cub::detail::find::dispatch_t<thrust::device_ptr<const xgboost::FeatureType>, unsigned long long *, unsigned long long, xgboost::common::IsCatOp, cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>>]" at line 831 of $PREFIX/include/rapids/cub/util_device.cuh
instantiation of "cudaError_t cub::ChainedPolicy<PolicyPtxVersion, PolicyT, PrevPolicyT>::runtime_arch_to_compiletime<ArchMult,CudaArches...,FunctorT>(int, FunctorT &) [with PolicyPtxVersion=300, PolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t, PrevPolicyT=cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>::policy_300_t, ArchMult=1, CudaArches=<500, 520, 600, 610, 700, 750, 800, 860, 890, 900, 1000, 1030, 1200, 1210>, FunctorT=cub::detail::find::dispatch_t<thrust::device_ptr<const xgboost::FeatureType>, unsigned long long *, unsigned long long, xgboost::common::IsCatOp, cub::detail::find::policy_hub_t<thrust::device_ptr<const xgboost::FeatureType>>>]" at line 796 of $PREFIX/include/rapids/cub/util_device.cuh
[ 6 instantiation contexts not shown ]
instantiation of "InputIt thrust::cuda_cub::find_if(thrust::cuda_cub::execution_policy<Derived> &, InputIt, InputIt, Predicate) [with Derived=thrust::cuda_cub::tag, InputIt=thrust::device_ptr<const xgboost::FeatureType>, Predicate=xgboost::common::IsCatOp]" at line 57 of $PREFIX/include/rapids/thrust/detail/find.inl
instantiation of "InputIterator thrust::find_if(const thrust::detail::execution_policy_base<DerivedPolicy> &, InputIterator, InputIterator, Predicate) [with DerivedPolicy=thrust::cuda_cub::tag, InputIterator=thrust::device_ptr<const xgboost::FeatureType>, Predicate=xgboost::common::IsCatOp]" at line 34 of $PREFIX/include/rapids/thrust/system/detail/generic/logical.h
instantiation of "__nv_bool thrust::system::detail::generic::any_of(thrust::execution_policy<ExecutionPolicy> &, InputIterator, InputIterator, Predicate) [with ExecutionPolicy=thrust::cuda_cub::tag, InputIterator=thrust::device_ptr<const xgboost::FeatureType>, Predicate=xgboost::common::IsCatOp]" at line 57 of $PREFIX/include/rapids/thrust/detail/logical.inl
instantiation of "__nv_bool thrust::any_of(const thrust::detail::execution_policy_base<DerivedPolicy> &, InputIterator, InputIterator, Predicate) [with DerivedPolicy=thrust::cuda_cub::tag, InputIterator=thrust::device_ptr<const xgboost::FeatureType>, Predicate=xgboost::common::IsCatOp]" at line 96 of $PREFIX/include/rapids/thrust/detail/logical.inl
instantiation of "__nv_bool thrust::any_of(InputIterator, InputIterator, Predicate) [with InputIterator=thrust::device_ptr<const xgboost::FeatureType>, Predicate=xgboost::common::IsCatOp]" at line 123 of $SRC_DIR/src/common/quantile.cuh
Found in rapidsai/xgboost-feedstock#127 (comment)
How to Reproduce
No minimal reproducer yet. I will try to craft one using thrust::find_if.
Expected behavior
The build should succeed for sm_60.
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
Metadata
Metadata
Assignees
Labels
needs triageIssues that require the team's attention
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Mar 11, 2026
Hi @hcho3!
Thanks for submitting this issue - the CCCL team has been notified and we'll get back to you as soon as we can!
In the mean time, feel free to add any relevant information to this issue.
Add comment referring to NVIDIA/cccl#7982
gonidelis commentedon Mar 11, 2026
Seems like we guarded against compiler supporting the relatively new atomic
__nv_atomic_loadbut we don't actually check if the mere target SM can run it. Good nvcc catches it thankfully and complains about it. Pushing fix in few ...gonidelis commentedon Mar 11, 2026
update: pushed fix, once approved and green you might have to update your CCCL version to the most recent ToT source
jakirkham commentedon Mar 11, 2026
Thank you for the quick fix Giannis! 🙏
bernhardmgruber commentedon Mar 11, 2026
sm_60 is no longer supported by CCCL 3.x, where we updated to support only CTK 12.x and CTK 13.x and per our support policy:
(See: https://github.com/NVIDIA/cccl?tab=readme-ov-file#gpu-architectures)
we thus only support what CTK 13.x supports, which is sm_75+. However, we will accept community contributed fixes via pull requests.
Since we don't have CI coverage below sm_75 there is also no guarantee that we may not break compatibility by accident again in the future.
jrhemstad commentedon Mar 11, 2026
@bernhardmgruber is correct that we don't actively test SM60 anymore, but we are more than happy to help fix issues especially for important users like xgboost!
Merge `conda-forge/main` into `rapidsai/main` (pt. 33) (#127)