Skip to content

Commit

Permalink
remove dubble initialization of pool
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Mar 20, 2024
1 parent c7f6657 commit b71e27c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ema_workbench/em_framework/futures_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ def initialize(self):
max_workers=self.n_processes,
initializer=mpi_initializer,
initargs=(self._msis, _logger.level, self.root_dir),
) # Removed initializer arguments
)

self._pool = MPIPoolExecutor(max_workers=self.n_processes) # Removed initializer arguments
_logger.info(f"MPI pool started with {self._pool._max_workers} workers")
if self._pool._max_workers <= 10:
_logger.warning(
Expand Down

0 comments on commit b71e27c

Please sign in to comment.