---
id: pr-cccl-cub-7874
repo: NVIDIA/cccl
pr: 7874
title: Implement the new tuning API for `DispatchSegmentedSort`
author: bernhardmgruber
date: '2026-03-09'
url: https://github.com/NVIDIA/cccl/pull/7874
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark_test
- memory_primitives
- policy tuning
- radix sort
- scheduler_autotune
- segmented reduce
- warp reduce
techniques:
- autotuning
- tile-scheduling
- warp-specialization
hardware_features: []
kernel_types:
- memory
- scheduler
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 09b73231d5d4704649ebc7c0bb0fd82d4f1c997a
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- c/parallel/src/radix_sort.cu
- c/parallel/src/segmented_sort.cu
- cub/benchmarks/bench/segmented_sort/keys.cu
- cub/cub/device/device_segmented_sort.cuh
- cub/cub/device/dispatch/dispatch_segmented_sort.cuh
- cub/cub/device/dispatch/kernels/kernel_segmented_sort.cuh
- cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh
- cub/cub/util_math.cuh
- cub/cub/warp/warp_load.cuh
- cub/cub/warp/warp_store.cuh
artifact_dir: evidence/pull-bundles/cccl-cub/gh-7874
head_ref_oid: af6d1c8ccbf411fea1337af2e87837429c4e9c59
---
# Implement the new tuning API for `DispatchSegmentedSort`

- Repository: `NVIDIA/cccl`
- PR: [7874](https://github.com/NVIDIA/cccl/pull/7874)
- 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

- `c/parallel/src/radix_sort.cu`
- `c/parallel/src/segmented_sort.cu`
- `cub/benchmarks/bench/segmented_sort/keys.cu`
- `cub/cub/device/device_segmented_sort.cuh`
- `cub/cub/device/dispatch/dispatch_segmented_sort.cuh`
- `cub/cub/device/dispatch/kernels/kernel_segmented_sort.cuh`
- `cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh`
- `cub/cub/util_math.cuh`
- `cub/cub/warp/warp_load.cuh`
- `cub/cub/warp/warp_store.cuh`

## Evidence Bundle

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