Repository navigation
Use a mix of processes and threads when processes is not specified - #375
Conversation
cb3da6c to
377015d
Compare
|
@jennirinker I took over your PR #334, any comments let me know! |
guillaumeeb
left a comment
There was a problem hiding this comment.
I've nothing to say about the code, but I'm not sure I like this default heuristic... I prefer when things are explicit. Maybe at least add some documentation on this?
Anyway, if everybody think it's better this way, then go for it.
|
Good point, I will add some documentation in the docstring for the default value of I have to say I don't remember why/how the mix of processes/threads was chosen for My main worry is that the default (when specifying only |
|
The heuristic was intended to find a good balance between the two. My experience is that machines with 20+ cores don't get full parallelism with only threads, and that separating these into a few processes tends to help. It could be though that workloads that run on HPC centers tend to be more GIL friendly (more numpy, less text). I don't know though. I've never really regretted having large nodes cut up into a few processes, so In general I'm mildly in favor of this change. I can understand not wanting it too though for explicitness. |
|
I pushed an entry in changelog. I am going to merge this one. |
Fixes #332, closes #334.