Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed unnecessary Pool creation in searchlight (#386)
When pool_size=1 the creation of a multiprocessing pool is unnecessary and wasteful because data needs to be copied and sent to other process. This would double the needed memory for each MPI task. In addition, fork() can cause unpredictable behaviour in some MPI implementations, see: https://www.open-mpi.org/faq/?category=tuning#fork-warning
- Loading branch information
Showing
2 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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