Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

parallel_scan example is wrong #20

Closed
mhoemmen opened this issue Aug 29, 2017 · 0 comments
Closed

parallel_scan example is wrong #20

mhoemmen opened this issue Aug 29, 2017 · 0 comments

Comments

@mhoemmen
Copy link
Contributor

Kokkos::parallel_scan example is wrong because it aliases input and output arrays. Final result will (incorrectly) be zero. For example, think of what happens on zeroth iteration (i=0).

@crtrott crtrott closed this as completed Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants