Skip to content
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

Fix initial value accounting in parallel_for_reduce #34

Merged
merged 4 commits into from Jul 8, 2021

Conversation

Sudha247
Copy link
Contributor

This patch attempts to fix a bug reported in #33. The initial value in parallel_for_reduce was accounted multiple times depending on the chunk size. Now it is reduced only once after other computations are over.

This patch also includes a doc update to signal users that the order of execution in the parallel functions is non-deterministic, and includes some correctness tests for parallel_for, parallel_for_reduce and parallel_scan.

This is reversing the initial value  being accounted for multiple times.  is accounted only once now after the computation is over
@kayceesrk
Copy link
Contributor

LGTM.

@kayceesrk kayceesrk merged commit dd68ba2 into ocaml-multicore:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants