---
id: pr-cccl-cub-8473
repo: NVIDIA/cccl
pr: 8473
title: Replace `detail::merge_sort::dispatch` by CUB's public API
author: bernhardmgruber
date: '2026-04-20'
url: https://github.com/NVIDIA/cccl/pull/8473
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark_test
- block reduce
- memory_primitives
techniques: []
hardware_features: []
kernel_types:
- memory
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 68c62601734e28424597e49d3a569cf2aa38f09a
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- cub/benchmarks/bench/merge_sort/keys.cu
- cub/benchmarks/bench/merge_sort/pairs.cu
- cub/cub/device/device_merge_sort.cuh
- cub/test/catch2_test_device_merge_sort_env.cu
- cub/test/catch2_test_device_reduce_env.cu
- cub/test/catch2_test_env_launch_helper.h
- thrust/thrust/system/cuda/detail/sort.h
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8473
head_ref_oid: 0c99200fea149975fb2615390cc7869733cc3a6b
---
# Replace `detail::merge_sort::dispatch` by CUB's public API

- Repository: `NVIDIA/cccl`
- PR: [8473](https://github.com/NVIDIA/cccl/pull/8473)
- 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/merge_sort/keys.cu`
- `cub/benchmarks/bench/merge_sort/pairs.cu`
- `cub/cub/device/device_merge_sort.cuh`
- `cub/test/catch2_test_device_merge_sort_env.cu`
- `cub/test/catch2_test_device_reduce_env.cu`
- `cub/test/catch2_test_env_launch_helper.h`
- `thrust/thrust/system/cuda/detail/sort.h`

## Evidence Bundle

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