From 98f2c0bfdeb55dcdf313bc359263913461241b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Tue, 7 Nov 2023 19:10:22 +0100 Subject: [PATCH] Add max_workers=1 as default parameter for all Executors --- pympipool/flux/executor.py | 2 +- pympipool/mpi/executor.py | 2 +- pympipool/slurm/executor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pympipool/flux/executor.py b/pympipool/flux/executor.py index 95425118..eea42163 100644 --- a/pympipool/flux/executor.py +++ b/pympipool/flux/executor.py @@ -27,7 +27,7 @@ class PyFluxExecutor(ExecutorBase): def __init__( self, - max_workers, + max_workers=1, cores_per_worker=1, threads_per_core=1, gpus_per_worker=0, diff --git a/pympipool/mpi/executor.py b/pympipool/mpi/executor.py index 5d137789..8d49b464 100644 --- a/pympipool/mpi/executor.py +++ b/pympipool/mpi/executor.py @@ -21,7 +21,7 @@ class PyMPIExecutor(ExecutorBase): def __init__( self, - max_workers, + max_workers=1, cores_per_worker=1, oversubscribe=False, init_function=None, diff --git a/pympipool/slurm/executor.py b/pympipool/slurm/executor.py index 33688506..09316ca6 100644 --- a/pympipool/slurm/executor.py +++ b/pympipool/slurm/executor.py @@ -31,7 +31,7 @@ class PySlurmExecutor(ExecutorBase): def __init__( self, - max_workers, + max_workers=1, cores_per_worker=1, threads_per_core=1, gpus_per_worker=0,