Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peng Lian
param_runner
Commits
904259e1
Commit
904259e1
authored
Jun 07, 2017
by
Module Admin
Browse files
Use cyclic exclusive srun step allocation
parent
88f9db54
Changes
1
Hide whitespace changes
Inline
Side-by-side
param_runner/executors.py
View file @
904259e1
...
...
@@ -173,7 +173,7 @@ class SrunExecutor(BaseExecutor):
def
run_cmd
(
self
,
cmd
,
stderr_file
,
stdout_file
):
cpus_per_task
=
self
.
params
.
vals
[
'cpus_per_task'
]
srun_cmd
=
"srun -
N1 -n1 -c%d
%s"
%
(
srun_cmd
=
"srun -
-exclusive -N1 -n1 --cpus-per-task=%d --distribution=cyclic
%s"
%
(
cpus_per_task
,
cmd
[
'__command'
][
'value'
])
ret
=
call
(
srun_cmd
,
shell
=
True
,
stderr
=
stderr_file
,
...
...
Write
Preview
Markdown
is supported
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