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
Stanislav Bohm
quake
Commits
f3cc6cc1
Commit
f3cc6cc1
authored
Apr 08, 2020
by
Stanislav Bohm
Browse files
Flag for OpenMPI bug on Salomon
parent
8298a4ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/deploy_pbs.py
View file @
f3cc6cc1
...
...
@@ -20,11 +20,15 @@ def is_inside_pbs():
return
"PBS_NODEFILE"
in
os
.
environ
def
get_pbs_nodes
():
assert
is_inside_pbs
()
def
get_pbs_nodes
(
use_short_names
):
if
not
is_inside_pbs
():
raise
Exception
(
"Not in PBS job"
)
with
open
(
os
.
environ
[
"PBS_NODEFILE"
])
as
f
:
return
[
line
.
strip
()
for
line
in
f
]
nodes
=
[
line
.
strip
()
for
line
in
f
]
if
use_short_names
:
nodes
=
[
line
.
split
(
"."
)[
0
]
for
line
in
nodes
]
return
nodes
def
start_datasrv
(
cluster
,
node
,
workdir
,
env
,
init_cmd
):
...
...
@@ -55,8 +59,9 @@ def start_server(cluster, workers, workdir, env, init_cmd):
@
click
.
command
()
@
click
.
argument
(
"workdir"
)
@
click
.
option
(
"--init-cmd"
,
default
=
""
)
def
up
(
workdir
,
init_cmd
):
nodes
=
get_pbs_nodes
()
@
click
.
option
(
"--short-names"
,
default
=
False
,
is_flag
=
True
)
def
up
(
workdir
,
init_cmd
,
short_names
):
nodes
=
get_pbs_nodes
(
short_names
)
workdir
=
pathlib
.
Path
(
workdir
).
absolute
()
prepare_directory
(
workdir
)
...
...
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