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.
It is a common case that you need to pass views over multiple arrays to a function or kernel that have the exact same dimensions. It leads to code duplication and passing more arguments than necessary.
Describe the solution you'd like
I propose to implement a storage optimized container of views cuda::span_collection that could be used like this:
I believe we have something similar with thrust::zip_iterator, although we don't have a corresponding range type for it. C++23 has std::views::zip which should serve this purpose, and @miscco has somewhat of a ranges implementation here: #198.
Therefore, I don't see the necessity of introducing this feature, unless I misunderstood it.
Is this a duplicate?
Area
CUDA Experimental (cudax)
Is your feature request related to a problem? Please describe.
It is a common case that you need to pass views over multiple arrays to a function or kernel that have the exact same dimensions. It leads to code duplication and passing more arguments than necessary.
Describe the solution you'd like
I propose to implement a storage optimized container of views
cuda::span_collection
that could be used like this:I tried to play with it a bit here https://godbolt.org/z/9WWhjKxfq
What are your thoughts on this idea?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: