forked from zkcrypto/bellman
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restructure use of rayon to avoid deadlocks
- perf: Uses rayon in the places where the work is cpu bound only - fix: Do not use custom rayon thread pools, as multiple of these can result in cross pool deadlocking. - fix: Proxy `BELLMAN_NUM_CPUS` to `RAYON_NUM_THREADS` for now, and deprecate it. - refactor: Use `RAYON_NUM_THREADS` as the baseline for determining the number of threads to to use - perf: Use `in_place_scope` instead of `scope` to avoid spawning unnecessary threads. - ci: Add CI tests to ensure the currently deadlocking test for `groth16_bench` is checked Co-authored-by: nemo <nemo@protocol.ai>
- Loading branch information
1 parent
7f93cc7
commit f0f8fe9
Showing
10 changed files
with
344 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.