---
id: pr-cccl-cub-8040
repo: NVIDIA/cccl
pr: 8040
title: 'Adds support for non-fundamental types via decomposer to `DeviceTopK` '
author: elstehle
date: '2026-03-18'
url: https://github.com/NVIDIA/cccl/pull/8040
source_category: upstream-code
architectures:
- sm100
tags:
- DeviceTopK
- benchmark
- benchmark_test
- memory_primitives
- moe_routing
- radix sort
techniques: []
hardware_features: []
kernel_types:
- memory
- moe
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: a0d85a9c9c3e75ec7582ca0603eb0b70a6675a2e
inclusion_reason: Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.
changed_paths:
- cub/benchmarks/bench/topk/keys.cu
- cub/benchmarks/bench/topk/pairs.cu
- cub/cub/agent/agent_topk.cuh
- cub/cub/block/radix_rank_sort_operations.cuh
- cub/cub/device/device_topk.cuh
- cub/cub/device/dispatch/dispatch_topk.cuh
- cub/test/catch2_test_device_topk_api.cu
- cub/test/catch2_test_device_topk_common.cuh
- cub/test/catch2_test_device_topk_keys.cu
- cub/test/catch2_test_device_topk_pairs.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8040
head_ref_oid: 4db9b9e3a29e2c17d6c06d09dd29403c22982ed8
---
# Adds support for non-fundamental types via decomposer to `DeviceTopK` 

- Repository: `NVIDIA/cccl`
- PR: [8040](https://github.com/NVIDIA/cccl/pull/8040)
- Decision: `Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.`
- Reason: Mine shape sets, tolerance rules, warmup logic, and profile commands before mutating code.

## Changed Paths

- `cub/benchmarks/bench/topk/keys.cu`
- `cub/benchmarks/bench/topk/pairs.cu`
- `cub/cub/agent/agent_topk.cuh`
- `cub/cub/block/radix_rank_sort_operations.cuh`
- `cub/cub/device/device_topk.cuh`
- `cub/cub/device/dispatch/dispatch_topk.cuh`
- `cub/test/catch2_test_device_topk_api.cu`
- `cub/test/catch2_test_device_topk_common.cuh`
- `cub/test/catch2_test_device_topk_keys.cu`
- `cub/test/catch2_test_device_topk_pairs.cu`

## Evidence Bundle

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