-
Notifications
You must be signed in to change notification settings - Fork 222
[FEA] Add iterator wrapping a T*
with a custom element stride
#3698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am wondering whether it would be better to ensure that |
I agree, but I tried that in the past (#2006) and the problem is that |
It turns out |
Uh oh!
There was an error while loading. Please reload this page.
To run CUB/thrust algorithms on a single data member of an array of structs, we would need an iterator that wraps a pointer to that data member (
T*
), but advances a different stride thansizeof(T)
.Contrived example use case:
The text was updated successfully, but these errors were encountered: