Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Lavocat
yggdrasil
Commits
a693596c
Commit
a693596c
authored
Nov 28, 2017
by
Thomas Lavocat
Browse files
Ability to execute a MPI jail on other computer than the group root
parent
e468e0c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
yggdrasil/task_lib/mpi_executor.py
View file @
a693596c
...
...
@@ -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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment