-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Threads macro load balancing option #32207
Comments
We should probably also think about |
Not quite, I think the right way of doing this is to enhance @sync for i in 1:100
@async par=true _f(i)
end |
Should it just default to a dynamic schedule once partr is working well? That's what Cilk does, right? |
Balanced workload is the exception rather than the rule, so imo, yes. |
Duplicate of #21017 |
Why not close if it's a duplicate? |
As discussed with @JeffBezanson in the Slack,
@threads
still uses a static schedule. However, there are some cases where we are using it as a simple way to express a lot of similar computations to be done on threads, each of which is actually quite expensive and not the same size. Thus for our purposes it would make sense to utilize@par
to get the dynamic scheduling, but it makes sense "aesthetics-wise" to just put@threads
on the loop. Thus it would make sense to have something like@threads dynamic for i in ...
whereit turns the loop
If I'm not mistaken that's all that's necessary?
The text was updated successfully, but these errors were encountered: