---
id: pr-cccl-cub-8565
repo: NVIDIA/cccl
pr: 8565
title: Replace `detail::for_each::dispatch` by CUB's public API
author: bernhardmgruber
date: '2026-04-27'
url: https://github.com/NVIDIA/cccl/pull/8565
source_category: upstream-code
architectures:
- sm100
tags:
- CUB
- benchmark_test
- memory_primitives
techniques: []
hardware_features: []
kernel_types:
- memory
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 0585104d4a0ae2833ab0b9a40f1de05a30478239
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- cub/benchmarks/bench/for_each/base.cu
- cub/benchmarks/bench/for_each/copy.cu
- cub/benchmarks/bench/for_each/extents.cu
- cub/cub/device/device_for.cuh
- cub/test/catch2_test_device_for_env.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8565
head_ref_oid: 5f399837d57199617e6f2c101095cc74fafc61c2
---
# Replace `detail::for_each::dispatch` by CUB's public API

- Repository: `NVIDIA/cccl`
- PR: [8565](https://github.com/NVIDIA/cccl/pull/8565)
- 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/for_each/base.cu`
- `cub/benchmarks/bench/for_each/copy.cu`
- `cub/benchmarks/bench/for_each/extents.cu`
- `cub/cub/device/device_for.cuh`
- `cub/test/catch2_test_device_for_env.cu`

## Evidence Bundle

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