Skip to content
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

Threading trick! #113

Merged
merged 5 commits into from
Sep 24, 2019
Merged

Threading trick! #113

merged 5 commits into from
Sep 24, 2019

Conversation

jpsamaroo
Copy link
Member

  1. Spawn Threads.@spawn f(x...) instead of f(x...) where x is the "fetched" data.
  2. repeat every process as many times as nthreads() -- causing Dagger to oversubscribe each worker processors as many times as the threads. TOOD: actually get nthreads from each worker rather than using the value on the master process

By @shashi

Will need to be adjusted so that pre-MT julia still works, and to make this an opt-in feature for now.

shashi and others added 2 commits July 23, 2019 16:44
1. Spawn `Threads.@Spawn f(x...)` instead of `f(x...)` where `x` is the "fetched" data.
2. repeat every process as many times as nthreads() -- causing Dagger to oversubscribe each worker processors as many times as the threads. TOOD: actually get nthreads from each worker rather than using the value on the master process
Add options field to Context and set it in scheduler
Pass Thunk options down to do_task
@jpsamaroo
Copy link
Member Author

jpsamaroo commented Sep 11, 2019

The nightly failure is probably related to Julia not being run with threads; I'll have to figure out how to enable JULIA_NUM_THREADS on CI, or failing that, disable or neuter the threading tests...

@jpsamaroo jpsamaroo changed the title [WIP] Threading trick! Threading trick! Sep 13, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 54.419% when pulling 0b122f0 on s/threads into 395a1d2 on master.

@jpsamaroo jpsamaroo merged commit 1df635c into master Sep 24, 2019
@jpsamaroo
Copy link
Member Author

Thanks @shashi and @tanmaykm !

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.

4 participants