Skip to content

[FEA]: Support device-resident problem size in device reduce #9448

Description

@gevtushenko

Is this a duplicate?

Area

CUB

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

Currently, cub::DeviceReduce accepts num_items as an integer. Sometimes, problem size is not available at host side.

Describe the solution you'd like

This issue can be closed with a PR adding device-resident problem size support in device reduce:

int *num_items = ...;
cub::DeviceReduce(...,  cuda::args::deferred{num_items})

Test should include passing a fancy (say, transform) iterator into deferred.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions