---
id: pr-cccl-cub-8285
repo: NVIDIA/cccl
pr: 8285
title: Support a custom comparison operator in `DeviceReduce::ArgMin|Max`
author: bernhardmgruber
date: '2026-04-08'
url: https://github.com/NVIDIA/cccl/pull/8285
source_category: upstream-code
architectures:
- sm100
tags:
- reduction
techniques: []
hardware_features: []
kernel_types:
- reduction
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: a003464230b794f6e4f81e145f9c63a52f122d7d
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- cub/benchmarks/bench/reduce/arg_extrema.cu
- cub/cub/device/device_reduce.cuh
- cub/cub/device/dispatch/dispatch_streaming_reduce.cuh
- cub/cub/thread/thread_operators.cuh
- cub/test/catch2_test_device_reduce.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8285
head_ref_oid: ee9c2a46e24a72a7f72efbfc9299832f3454f58d
---
# Support a custom comparison operator in `DeviceReduce::ArgMin|Max`

- Repository: `NVIDIA/cccl`
- PR: [8285](https://github.com/NVIDIA/cccl/pull/8285)
- 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/reduce/arg_extrema.cu`
- `cub/cub/device/device_reduce.cuh`
- `cub/cub/device/dispatch/dispatch_streaming_reduce.cuh`
- `cub/cub/thread/thread_operators.cuh`
- `cub/test/catch2_test_device_reduce.cu`

## Evidence Bundle

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