Skip to content

Expose unrolling control in cub::DeviceMergeSort to tuning #9052

Closed

Description

@bernhardmgruber

The algorithms in cub::DeviceMergeSort use unrolled loop in several places in the implementation. Some users (it's RAPIDs) need to disable unrolling though, because their comparison operators are complex and unrolling results in large binaries. This is what the switch CCCL_AVOID_SORT_UNROLL is for.

Ideally, unrolling should just be controlled via the tuning policy, so users have a standard API interface for it.

We should add an unroll flag to the tuning policy of cub::DeviceMergeSort that replaces the functionality of CCCL_AVOID_SORT_UNROLL.

Activity

  1. changed the title [-]Expose controlling unrolling in `cub::DeviceMergeSort` to tuning[/-] [+]Expose unrolling control in `cub::DeviceMergeSort` to tuning[/+] on May 18, 2026
  2. added this to the CCCL 3.5 milestone on May 29, 2026
  3. moved this from Todo to In Progress in CCCLon May 29, 2026
  4. moved this from In Progress to In Review in CCCLon May 29, 2026
  5. added a commit that references this issue on May 29, 2026
    25e321a
  6. added 3 commits that reference this issue on Jul 3, 2026
    5254a12
    09508d0
    43db4b1
  7. moved this from In Review to Done in CCCLon Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions