Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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):
def __init__(self, name, command, jail, end=False, timeout=-1,
encoding=consts.encoding,
long_opt=False) :
long_opt=False,
exec_rank="0") :
Executor.__init__(self, jail, end, name, timeout, encoding)
self.exec_rank = exec_rank;
if long_opt :
self.command = "{} --NETWORK={} --PORT={}".format(command,
self.group.ID,
......@@ -18,7 +20,7 @@ class MPIExecutor(Executor):
self.group.server_number)
def run(self) :
self.framework.exec_on("0",
self.framework.exec_on(self.exec_rank,
self.command,
consts.TRUE,
"0",
......
Markdown is supported
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