-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Feature Request: OpenMP/TBB like Parallel For Loops #859
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
Comments
New |
This is possible with scoped threads, so probably already satisfied with simple_parallel + crossbeam no? Would love to see more things enter into std. |
Also relevant is @nikomatsakis' rayon:
Recent blog post: http://smallcultfollowing.com/babysteps/blog/2015/12/18/rayon-data-parallelism-in-rust/ |
@steveklabnik can this be closed? |
yes |
Friday Feb 28, 2014 at 11:14 GMT
For earlier discussion, see rust-lang/rust#12619
This issue was labelled with: A-libs in the Rust repository
Is it possible to have some easy to use parallel for loops like OpenMP or Intel TBB in Rust? As far as I know their parallel for loops divide the range by CPU cores (or specified worker threads), then every worker thread will access a sequential stream of data in memory (better CPU cache utilization) and idle worker threads are also able to steal tasks from busy ones to balance the load (which is optional in OMP, and the default for the TBB).
Serial code:
Intel TBB example:
OpenMP example:
The text was updated successfully, but these errors were encountered: