Skip to content

Commit

Permalink
fix stupid ibrun bug
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorEijkhout committed Sep 6, 2024
1 parent fa17649 commit 1ccdacc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pylauncher/pylauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,10 @@ class HostPoolBase():
def __init__(self,**kwargs):
self.nodes = []
self.commandexecutor = kwargs.pop("commandexecutor",None)
if not isinstance(self.commandexecutor,(Executor)):
raise LauncherException\
(f"""command executor is of strange type <<{type(self.commandexecutor)}>>:
{self.commandexecutor}""")
workdir = kwargs.pop("workdir",None)
if self.commandexecutor is None:
self.commandexecutor = LocalExecutor(workdir=workdir)
Expand Down Expand Up @@ -2161,12 +2165,10 @@ def IbrunLauncher(commandfile,**kwargs):
numactl = kwargs.pop("numactl",None)
corespernode = kwargs.pop("corespernode",None)
resume = kwargs.pop("resume",None)
commandexecutor = IbrunExecutor(workdir=workdir,debug=debug),
commandexecutor = IbrunExecutor(workdir=workdir,debug=debug)
job = LauncherJob(
hostpool=HostPool(
hostlist=HostListByName(debug=debug),
# (commandexecutor=commandexecutor,workdir=workdir,
# corespernode=corespernode,debug=debug),
commandexecutor=commandexecutor,workdir=workdir,
debug=debug ),
taskgenerator=WrappedTaskGenerator(
Expand Down

0 comments on commit 1ccdacc

Please sign in to comment.