Skip to content

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
shonfeder pushed a commit to ocaml/opam-repository that referenced this pull request Apr 10, 2025
CHANGES:

* Upgrade to Saturn 1.0 (ocaml-multicore/domainslib#129, @Sudha247)
* Update README.md instruction to use OCaml 5.1.0 (ocaml-multicore/domainslib#123, @punchagan)
* Fix Saturn.Queue function (ocaml-multicore/domainslib#121, @Sudha247)
* Make parallel_scan work on noncommutative functions (ocaml-multicore/domainslib#118, @aytao)
* Test condition tweaks (ocaml-multicore/domainslib#113, @jmid)
* Adjust PBTs based on recommended_domain_count (ocaml-multicore/domainslib#112, @jmid)
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