Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
param_runner
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
BioHPC
param_runner
Commits
904259e1
Commit
904259e1
authored
7 years ago
by
Module Admin
Browse files
Options
Downloads
Patches
Plain Diff
Use cyclic exclusive srun step allocation
parent
88f9db54
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
param_runner/executors.py
+1
-1
1 addition, 1 deletion
param_runner/executors.py
with
1 addition
and
1 deletion
param_runner/executors.py
+
1
−
1
View file @
904259e1
...
@@ -173,7 +173,7 @@ class SrunExecutor(BaseExecutor):
...
@@ -173,7 +173,7 @@ class SrunExecutor(BaseExecutor):
def
run_cmd
(
self
,
cmd
,
stderr_file
,
stdout_file
):
def
run_cmd
(
self
,
cmd
,
stderr_file
,
stdout_file
):
cpus_per_task
=
self
.
params
.
vals
[
'
cpus_per_task
'
]
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
'
])
cpus_per_task
,
cmd
[
'
__command
'
][
'
value
'
])
ret
=
call
(
srun_cmd
,
shell
=
True
,
stderr
=
stderr_file
,
ret
=
call
(
srun_cmd
,
shell
=
True
,
stderr
=
stderr_file
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment