Repository navigation
[MRG+1] Fix tests when multiprocessing is disabled - #409
Merged
Merged
Conversation
Member
Author
|
@aabadie can you have a quick look at it? |
Contributor
|
LGTM +1 |
Contributor
|
I think @ogrisel will have a better opinion than mine on this. |
Member
Author
|
From a chat IRL, @ogrisel thought it would be better to have one single Travis build that would test JOBLIB_MULTIPROCESSING=0 rather than all the builds testing both. |
Member
Author
aabadie
suggested changes
Oct 3, 2016
aabadie
left a comment
Contributor
There was a problem hiding this comment.
Thinking of it, I just added a comment about the fix.
| This also checks if we are attempting to create a nested parallel | ||
| loop. | ||
| """ | ||
| if mp is None: |
Contributor
There was a problem hiding this comment.
maybe add a comment here explaining the related problem. Something like "when multiprocessing is disabled, only one effective job is possible".
What about warning the user if n_jobs >1 and mp is None ?
Member
Author
There was a problem hiding this comment.
mp is None can happen for mostly two reasons (joblib/_multiprocessing_helpers.py):
- JOBLIB_MULTIPROCESSING environment variable set to 0 in which case you kind of know what you are doing so IMO a warning is superfluous.
- locking is not available on the system (e.g. Amazon AWS Lambda IIRC) and you already get a warning here.
aabadie
approved these changes
Oct 5, 2016
lesteve
added a commit
that referenced
this pull request
Oct 6, 2016
* Fix tests when multiprocessing is disabled * Add a single Travis build to test JOBLIB_MULTIPROCESSING=0 * Coverage only needed once
yarikoptic
added a commit
to yarikoptic/joblib
that referenced
this pull request
Dec 8, 2016
* tag '0.10.3': MAINT simplify setup.py Bump up version for 0.10.3 release Add entries for 0.10.3 release in CHANGES.rst [MRG+1] Fix tests when multiprocessing is disabled (joblib#409) [MRG+1] Remove warnings in nested Parallel when the inner Parallel has n_jobs=1 (joblib#406)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From #391 (comment):