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

Use persistent workers for parLapply parallelism #372

Merged
merged 7 commits into from
May 3, 2018
Merged

Conversation

wlandau
Copy link
Member

@wlandau wlandau commented May 3, 2018

Summary

Use mc_process() inside of parLapply() to make parLapply() workers be persistent workers. Unit tests all pass locally under the "local_parLapply_2" testing scenario. No more staged parallelism for make(parallelism = "parLapply")!

GitHub issues addressed

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.

Just copy over mc_process() from the mclapply stuff.
Never thought such a hard problem would suddenly
seem so easy!
We don't really need anything fancy there.
I probably could have gotten away with never
implementing migration from v4.4.0 caches to
v5.0.0 caches.
Hopefully this removes the Travis pandoc error
@codecov-io
Copy link

codecov-io commented May 3, 2018

Codecov Report

Merging #372 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #372      +/-   ##
========================================
+ Coverage   99.98%   100%   +0.01%     
========================================
  Files          66     66              
  Lines        5474   5467       -7     
========================================
- Hits         5473   5467       -6     
+ Misses          1      0       -1
Impacted Files Coverage Δ
R/migrate.R 100% <100%> (ø) ⬆️
R/parLapply.R 100% <100%> (ø) ⬆️
R/mclapply.R 100% <100%> (ø) ⬆️
R/envir.R 100% <100%> (+1.02%) ⬆️

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 617500f...e2788bc. Read the comment docs.

...that will just be removed anyway
when staged parallelism goes away.
Just set config$cluster to be your cluster and `drake`
will use it.
Need to learn how to detect them first.
@wlandau wlandau merged commit 8304445 into master May 3, 2018
@wlandau wlandau deleted the i369-parLapply branch May 3, 2018 04:29
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.

3 participants