Skip to content

[BUG]: sm_60 support broken for cub::detail::find::agent_t #7982

Closed

Description

@chyunsu3

Is this a duplicate?

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

Activity

  1. added theissue type on Mar 11, 2026
  2. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    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.

  3. added
    needs triage
    on Mar 11, 2026
  4. gonidelis commented on Mar 11, 2026

    @gonidelis
    Member

    Seems like we guarded against compiler supporting the relatively new atomic __nv_atomic_load but 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 ...

  5. moved this from Todo to In Progress in CCCLon Mar 11, 2026
  6. moved this from In Progress to In Review in CCCLon Mar 11, 2026
  7. gonidelis commented on Mar 11, 2026

    @gonidelis
    Member

    update: pushed fix, once approved and green you might have to update your CCCL version to the most recent ToT source

  8. jakirkham commented on Mar 11, 2026

    @jakirkham
    Contributor

    Thank you for the quick fix Giannis! 🙏

  9. bernhardmgruber commented on Mar 11, 2026

    @bernhardmgruber
    Contributor

    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:

    CCCL supports all GPU architectures that are supported by the current major CUDA Toolkit (CTK).

    (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.

  10. jrhemstad commented on Mar 11, 2026

    @jrhemstad
    Collaborator

    @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!

  11. moved this from In Review to Done in CCCLon Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs triage

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions