---
id: pr-cccl-cub-6069
repo: NVIDIA/cccl
pr: 6069
title: Add dynamic CUB dispatch for segmented_sort
author: NaderAlAwar
date: '2025-10-01'
url: https://github.com/NVIDIA/cccl/pull/6069
source_category: upstream-code
architectures:
- sm90
tags:
- benchmark_test
- memory_primitives
- segmented reduce
- sm90
techniques:
- warp-specialization
hardware_features:
- hopper
kernel_types:
- memory
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 78ccb103374f24d211e31208153e2a844ca18846
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- cub/benchmarks/bench/segmented_sort/keys.cu
- cub/cub/agent/agent_radix_sort_downsweep.cuh
- cub/cub/agent/agent_sub_warp_merge_sort.cuh
- cub/cub/device/device_partition.cuh
- cub/cub/device/dispatch/dispatch_segmented_sort.cuh
- cub/cub/device/dispatch/kernels/segmented_sort.cuh
- cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh
- cub/test/catch2_segmented_sort_helper.cuh
- libcudacxx/include/cuda/std/__cccl/preprocessor.h
artifact_dir: evidence/pull-bundles/cccl-cub/gh-6069
head_ref_oid: 61bf02e4be55f4c57ecf3dbab878cf5e492470b9
---
# Add dynamic CUB dispatch for segmented_sort

- Repository: `NVIDIA/cccl`
- PR: [6069](https://github.com/NVIDIA/cccl/pull/6069)
- Decision: `Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.`
- Reason: Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.

## Changed Paths

- `cub/benchmarks/bench/segmented_sort/keys.cu`
- `cub/cub/agent/agent_radix_sort_downsweep.cuh`
- `cub/cub/agent/agent_sub_warp_merge_sort.cuh`
- `cub/cub/device/device_partition.cuh`
- `cub/cub/device/dispatch/dispatch_segmented_sort.cuh`
- `cub/cub/device/dispatch/kernels/segmented_sort.cuh`
- `cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh`
- `cub/test/catch2_segmented_sort_helper.cuh`
- `libcudacxx/include/cuda/std/__cccl/preprocessor.h`

## Evidence Bundle

`evidence/pull-bundles/cccl-cub/gh-6069`
