-
Notifications
You must be signed in to change notification settings - Fork 9
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 scheduler options struct
s
#22
Comments
See e.g. https://juliafolds2.github.io/OhMyThreads.jl/dev/examples/juliaset/juliaset/ for an example |
Yeah, I was thinking that with all of these different options and the way they depend on eachother, I'd want to make the schedule a Base.@kwdef struct GreedyScheduler
nchunks::Int = nthreads()
split::Symbol=:batch
end |
Might make sense, yes. |
carstenbauer
changed the title
Choose different
Choose different Feb 2, 2024
nchunks
defaults for different schedulers?nchunks
defaults for different schedulers
carstenbauer
added
priority
and removed
question
Further information is requested
labels
Feb 2, 2024
carstenbauer
changed the title
Choose different
Make scheduler options Feb 6, 2024
nchunks
defaults for different schedulersstruct
s
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
schedule=:static
the reasonable default isnchunks=nthreads()
.schedule=:dynamic
the reasonable default isnchunks=x*nthreads()
, wherex
is a small factor (maybe 2 or 3).nchunks=nthreads()
) we have no load balancing and we're no better than@threads :dynamic
.schedule=:greedy
yet.The text was updated successfully, but these errors were encountered: