Skip to content

Commit

Permalink
Remove permit_multiple_nodes argument in SimpleLauncher (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harichandra-Prasath authored Mar 18, 2024
1 parent 7d57191 commit 6e2e0dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions parsl/launchers/launchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ class SimpleLauncher(Launcher):
def __init__(self, debug: bool = True) -> None:
super().__init__(debug=debug)

def __call__(self, command: str, tasks_per_node: int, nodes_per_block: int, permit_multiple_nodes: bool = False) -> str:
def __call__(self, command: str, tasks_per_node: int, nodes_per_block: int) -> str:

if nodes_per_block > 1:
logger.warning('Simple Launcher only supports single node per block. '
f'Requested nodes: {nodes_per_block}. '
'You may be getting fewer workers than expected')

if nodes_per_block > 1 and not permit_multiple_nodes:
logger.warning("SimpleLauncher only supports 1 node per block. "
"Set permit_multiple_nodes=True to allow multiple nodes per block.")
return command


Expand Down

0 comments on commit 6e2e0dd

Please sign in to comment.