Commit a693596c authored by Thomas Lavocat's avatar Thomas Lavocat
Browse files

Ability to execute a MPI jail on other computer than the group root

parent e468e0c3
...@@ -7,8 +7,10 @@ class MPIExecutor(Executor): ...@@ -7,8 +7,10 @@ class MPIExecutor(Executor):
def __init__(self, name, command, jail, end=False, timeout=-1, def __init__(self, name, command, jail, end=False, timeout=-1,
encoding=consts.encoding, encoding=consts.encoding,
long_opt=False) : long_opt=False,
exec_rank="0") :
Executor.__init__(self, jail, end, name, timeout, encoding) Executor.__init__(self, jail, end, name, timeout, encoding)
self.exec_rank = exec_rank;
if long_opt : if long_opt :
self.command = "{} --NETWORK={} --PORT={}".format(command, self.command = "{} --NETWORK={} --PORT={}".format(command,
self.group.ID, self.group.ID,
...@@ -18,7 +20,7 @@ class MPIExecutor(Executor): ...@@ -18,7 +20,7 @@ class MPIExecutor(Executor):
self.group.server_number) self.group.server_number)
def run(self) : def run(self) :
self.framework.exec_on("0", self.framework.exec_on(self.exec_rank,
self.command, self.command,
consts.TRUE, consts.TRUE,
"0", "0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment