You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We are lacking functionality of sentinel fancy iterators such as thrust::counting_iterator, and thrust::constant_iterator in cuda.parallel.
Describe the solution you'd like
We should introduce cuda.parallel.experimental.itertools module with repeat(value) for thrust::constant_iterator, and count(start) for thrust::counting_iterator.
Is this a duplicate?
Area
General CCCL
Is your feature request related to a problem? Please describe.
We are lacking functionality of sentinel fancy iterators such as
thrust::counting_iterator
, andthrust::constant_iterator
in cuda.parallel.Describe the solution you'd like
We should introduce
cuda.parallel.experimental.itertools
module withrepeat(value)
forthrust::constant_iterator
, andcount(start)
forthrust::counting_iterator
.Naive implementation might look like:
This issue can be closed by three tests in
python/cuda_parallel/tests/test_reduce.py
:repeat(1)
is equal tonum_items
repeat(UserDefinedPair(1, 2))
is equal toUserDefinedPair(num_items, 2 * num_items)
count(1)
is equal tonum_items * (num_items + 1) / 2
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: