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

Get rid of staged parallelism in make(parallelism = "mclapply") #370

Merged
merged 12 commits into from
May 2, 2018

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented May 2, 2018

Summary

In make(parallelism = "mclapply", jobs = 2), drake spawns 2 persistent workers and a master process to govern them. This gets rid of staged parallelism for the mclapply backend. Other minor changes:

  • Skip the mclapply tests on CRAN (would spawn 3 jobs).
  • Rename config$execution_graph to config$schedule internally.

All the unit tests seem to work, even for the "local_mclapply_9" testing scenario, but there is some testing left to do on real projects.

cc @krlmlr

GitHub issues fixed

This PR chips away at #369, but does not solve it. Many more to-do's remain in the checklist.

Checklist

  • I have read drake's code of conduct, and I agree to follow its rules.
  • I have read the guidelines for contributing.
  • I have listed any substantial changes in the development news.
  • I have added testthat unit tests to tests/testthat to confirm that any new features or functionality work correctly.
  • I have tested this pull request locally with devtools::check()
  • This pull request is ready for review.
  • I think this pull request is ready to merge.

@codecov-io
Copy link

codecov-io commented May 2, 2018

Codecov Report

Merging #370 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #370    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files          66     66            
  Lines        5331   5469   +138     
======================================
+ Hits         5331   5469   +138
Impacted Files Coverage Δ
R/handlers.R 100% <ø> (ø) ⬆️
R/future.R 100% <100%> (ø) ⬆️
R/make.R 100% <100%> (ø) ⬆️
R/graph.R 100% <100%> (ø) ⬆️
R/staged_parallelism.R 100% <100%> (ø) ⬆️
R/mclapply.R 100% <100%> (ø) ⬆️
R/triggers.R 100% <100%> (ø) ⬆️
R/queue.R 100% <100%> (ø) ⬆️
R/migrate.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fa2487...6f7d999. Read the comment docs.

@wlandau
Copy link
Member Author

wlandau commented May 2, 2018

Tested on a couple different projects, seems to work fine. Let the beta testing begin!

@krlmlr
Copy link
Collaborator

krlmlr commented May 2, 2018

Sounds like a good idea. I'm excited to test this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants