---
id: pr-cccl-cub-7940
repo: NVIDIA/cccl
pr: 7940
title: '[cuda.compute]: Fix faulty pointer arithmetic calculation in CUB dispatch'
author: NaderAlAwar
date: '2026-03-09'
url: https://github.com/NVIDIA/cccl/pull/7940
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark_test
- cuda.compute
- memory_primitives
techniques: []
hardware_features: []
kernel_types:
- memory
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: b30a4af774adcb888cbec36fe627980b4469e1cc
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
- cub/cub/device/dispatch/dispatch_radix_sort.cuh
- python/cuda_cccl/tests/compute/test_radix_sort.py
artifact_dir: evidence/pull-bundles/cccl-cub/gh-7940
head_ref_oid: e6bfacf9994bb6904c43ac965f3e8de73e823bd0
---
# [cuda.compute]: Fix faulty pointer arithmetic calculation in CUB dispatch

- Repository: `NVIDIA/cccl`
- PR: [7940](https://github.com/NVIDIA/cccl/pull/7940)
- 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`
- `cub/cub/device/dispatch/dispatch_radix_sort.cuh`
- `python/cuda_cccl/tests/compute/test_radix_sort.py`

## Evidence Bundle

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