NVIDIA / NVIDIA/cccl

[FEA]: DeviceReduceTransformReduceByKey

Open
#1,239 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
487
Avg merge
2d 7h
Merged PRs (30d)
296

Description

### Is this a duplicate?

- [X] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)

### Area

CUB

### Is your feature request related to a problem? Please describe.

I'm trying to use DeviceReduce to efficiently compute the bounding box for each set of inputs which have a matching key. The input value is a lot smaller than the structure I'm reducing over.

### Describe the solution you'd like

I would like to see the `ByKey` equivalent of `DeviceReduce::TransformReduce`.
I'm able to do this by using a TransformInputIterator, but that consumes more memory.

### Describe alternatives you've considered

`DeviceReduce::ReduceByKey` can be persuaded to work with a `cub::TransformInputIterator`, but has the same tradeoffs that made it worth building `DeviceReduce::TransformReduce`.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.