Skip to content

Commit

Permalink
Add max_workers=1 as default parameter for all Executors
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 7, 2023
1 parent 74d8cea commit 98f2c0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pympipool/flux/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pympipool/mpi/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PyMPIExecutor(ExecutorBase):

def __init__(
self,
max_workers,
max_workers=1,
cores_per_worker=1,
oversubscribe=False,
init_function=None,
Expand Down
2 changes: 1 addition & 1 deletion pympipool/slurm/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 98f2c0b

Please sign in to comment.