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

Make parallel_scan work on noncommutative functions #118

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

aytao
Copy link
Contributor

@aytao aytao commented Aug 29, 2023

This PR fixes #116

Previously, a single incorrect parameter ordering in Task.parallel_scan meant that the provided operation had to be both associative and commutative. This PR fixes this so that parallel_scan is now still correct for noncommutative functions.

Copy link
Contributor

@Sudha247 Sudha247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Looks good to me.

@Sudha247 Sudha247 merged commit abaa4a3 into ocaml-multicore:main Aug 31, 2023
2 checks passed
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.

bug in parallel_scan ?
2 participants