-
Notifications
You must be signed in to change notification settings - Fork 159
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
Give inclusive_scan an overload with init #693
Comments
This will subtly change the semantics of Currently in Thrust, if the
After giving
In other words, the |
Better wait and see what syntax shakes out of Parallelism TS |
To fully implement stdpar, nvc++ needs the overloads of |
We received our first bug report from an end user about this. The lack of this function in Thrust means one of the overloads of |
Any updates or ETA on this? |
@brycelelbach incoming |
It's difficult to implement scan and other sequences of scan or sums otherwise. The
init
parameter can accept the "carry" of the previous sum.inclusive_scan
withoutinit
can easily be implemented by the more general overload by passing the initial input element as theinit
and having the first thread copy to the first element of the output.Tasks
The text was updated successfully, but these errors were encountered: