-
-
Notifications
You must be signed in to change notification settings - Fork 129
Scatter Parameters to Workers once in SS #911
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
Conversation
- Instead of scattering the Parameters object prior to each call to the dask client, scatter it once and put the resulting future in module level scope. Retrieve it using `global` and then pass to the client in the inner loop. This significantly reduces the run time of SS.
if scatter_p is None from the global namespace, go ahead and use the client to get the scattered version.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #911 +/- ##
==========================================
- Coverage 73.44% 73.40% -0.05%
==========================================
Files 19 19
Lines 4610 4614 +4
==========================================
+ Hits 3386 3387 +1
- Misses 1224 1227 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@rickecon thanks so much for fixing the codecov situation! I'm looking at all greens here. If this looks good to you, let's merge! also, agree on the idea of dropping 3.9 test coverage. Seems like a good way to reduce resource usage. |
@talumbau and @jdebacker. I am comparing this PR to @jdebacker's PR #916. The only difference is that Jason's PR includes an I recommend that, if it is correctly to include the else statement (which I think it is), TJ should just make that addition to this PR and we'll merge this and close Jason's. Also, note that this PR is running both push and pull tests because TJ made a branch on this OG-Core repository. TJ, all the CI tests will run twice as fast (and Microsoft will hate us less) if you follow the workflow of forking this repository and submitting your PRs from branches of your fork. I am adding an issue proposing to remove the Python 3.9 tests. |
Ah, sorry about that. I actually prefer the fork style anyway. Some other recent development work got me in this "push branch to origin" pattern, which I think is suboptimal. Will fork and PR from that from now on.
|
Correct. This is the key feature. In the |
@jdebacker and @talumbau. OK. Then are we ready to merge this PR and close Jason's PR #916? It looks good to me. And I am excited to move on to the similar TPI solution. |
Yep. I will do the merge for this PR. I think we can close #916. Will have a similar one up for TPI soon (as a fork PR) and then will ask you both to do a before/after comparison just as a sanity check on what I'm getting on my workstation. |
global
and then pass to the client in the inner loop. This significantly reduces the run time of SS.