---
id: pr-cccl-cub-8440
repo: NVIDIA/cccl
pr: 8440
title: Swap the `load_modifier` and `store_algorithm` in `sub_warp_merge_sort_policy`
author: bernhardmgruber
date: '2026-04-15'
url: https://github.com/NVIDIA/cccl/pull/8440
source_category: upstream-code
architectures:
- sm100
tags:
- sort
- warp
techniques:
- warp-specialization
hardware_features: []
kernel_types:
- sort
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 7820645e80fa6a5a713d53d8fbd3bf20b8f009f3
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- cub/benchmarks/bench/segmented_sort/keys.cu
- cub/cub/device/dispatch/dispatch_segmented_sort.cuh
- cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8440
head_ref_oid: dccf6b54f1c5bf322b90e7cc6e38ccf943c567e8
---
# Swap the `load_modifier` and `store_algorithm` in `sub_warp_merge_sort_policy`

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

- `cub/benchmarks/bench/segmented_sort/keys.cu`
- `cub/cub/device/dispatch/dispatch_segmented_sort.cuh`
- `cub/cub/device/dispatch/tuning/tuning_segmented_sort.cuh`

## Evidence Bundle

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