Skip to content

[FEA]: cuda_parallel should provide DiscardIterator #4132

@oleksandr-pavlyk

Description

@oleksandr-pavlyk

Is this a duplicate?

Area

cuda.parallel (Python)

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

In order to support example of using unique_by_key algorithms but only allocating what is required to accommodate the unique keys and unique values Python user needs to use DiscardIterator.

In the first call, unique_by_key is called with DiscardIteratorfor output keys and output items, compute the number of selected items, allocates output arrays and calls the algorithms again to populate the allocated arrays.

Describe the solution you'd like

It would be awesome of cuda.parallel supported output iterators and, in particular, DiscardIterator.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions