---
id: pr-cccl-cub-8128
repo: NVIDIA/cccl
pr: 8128
title: Implement the new tuning API for `DispatchMergeSort`
author: bernhardmgruber
date: '2026-03-24'
url: https://github.com/NVIDIA/cccl/pull/8128
source_category: upstream-code
architectures:
- sm100
tags:
- sort
techniques: []
hardware_features: []
kernel_types:
- sort
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 10f321c6556be295dcb28956351f6ecaa8355205
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- c/parallel/src/merge_sort.cu
- cub/benchmarks/bench/merge_sort/keys.cu
- cub/benchmarks/bench/merge_sort/pairs.cu
- cub/cub/agent/agent_merge_sort.cuh
- cub/cub/device/device_merge_sort.cuh
- cub/cub/device/dispatch/dispatch_merge_sort.cuh
- cub/cub/device/dispatch/kernels/kernel_merge_sort.cuh
- cub/cub/device/dispatch/tuning/tuning_merge_sort.cuh
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8128
head_ref_oid: 11890934121a93f2275020f49e1dcba2c3b3b98e
---
# Implement the new tuning API for `DispatchMergeSort`

- Repository: `NVIDIA/cccl`
- PR: [8128](https://github.com/NVIDIA/cccl/pull/8128)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `c/parallel/src/merge_sort.cu`
- `cub/benchmarks/bench/merge_sort/keys.cu`
- `cub/benchmarks/bench/merge_sort/pairs.cu`
- `cub/cub/agent/agent_merge_sort.cuh`
- `cub/cub/device/device_merge_sort.cuh`
- `cub/cub/device/dispatch/dispatch_merge_sort.cuh`
- `cub/cub/device/dispatch/kernels/kernel_merge_sort.cuh`
- `cub/cub/device/dispatch/tuning/tuning_merge_sort.cuh`

## Evidence Bundle

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