---
id: pr-cccl-cub-8145
repo: NVIDIA/cccl
pr: 8145
title: Refactor warpspeed scan tuning
author: bernhardmgruber
date: '2026-03-30'
url: https://github.com/NVIDIA/cccl/pull/8145
source_category: upstream-code
architectures:
- sm100
tags:
- scan
techniques:
- warp-specialization
hardware_features: []
kernel_types:
- scan
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 84d100d3b35e364e208cc8811d1d5ff351ad55b4
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- c/parallel/include/cccl/c/scan.h
- c/parallel/src/scan.cu
- cub/benchmarks/bench/scan/policy_selector.h
- cub/cub/device/dispatch/dispatch_scan.cuh
- cub/cub/device/dispatch/kernels/kernel_scan.cuh
- cub/cub/device/dispatch/kernels/kernel_scan_warpspeed.cuh
- cub/cub/device/dispatch/kernels/scan_warpspeed_policy.cuh
- cub/cub/device/dispatch/tuning/tuning_scan.cuh
- cub/test/catch2_test_device_scan_env.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8145
head_ref_oid: db404fb8c3545752023f459d9873ae611f830aff
---
# Refactor warpspeed scan tuning

- Repository: `NVIDIA/cccl`
- PR: [8145](https://github.com/NVIDIA/cccl/pull/8145)
- 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/include/cccl/c/scan.h`
- `c/parallel/src/scan.cu`
- `cub/benchmarks/bench/scan/policy_selector.h`
- `cub/cub/device/dispatch/dispatch_scan.cuh`
- `cub/cub/device/dispatch/kernels/kernel_scan.cuh`
- `cub/cub/device/dispatch/kernels/kernel_scan_warpspeed.cuh`
- `cub/cub/device/dispatch/kernels/scan_warpspeed_policy.cuh`
- `cub/cub/device/dispatch/tuning/tuning_scan.cuh`
- `cub/test/catch2_test_device_scan_env.cu`

## Evidence Bundle

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