Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
c5a28c04
"vscode:/vscode.git/clone" did not exist on "55927aaf7e08faac6d6631a1bc0dba4e7ced024b"
Commit
c5a28c04
authored
Nov 28, 2020
by
Antoine Kaufmann
Browse files
experiments: verbose support for slurm
parent
fe2ddae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
experiments/modes/runtime.py
experiments/modes/runtime.py
+5
-1
No files found.
experiments/modes/runtime.py
View file @
c5a28c04
...
...
@@ -192,7 +192,11 @@ class SlurmRuntime(Runtime):
s
=
int
(
exp
.
timeout
%
60
)
f
.
write
(
'#SBATCH --time=%02d:%02d:%02d
\n
'
%
(
h
,
m
,
s
))
f
.
write
(
'python3 run.py --pickled %s
\n
'
%
(
exp_path
))
extra
=
''
if
self
.
verbose
:
extra
=
'--verbose'
f
.
write
(
'python3 run.py %s --pickled %s
\n
'
%
(
extra
,
exp_path
))
f
.
write
(
'status=$?
\n
'
)
if
self
.
cleanup
:
f
.
write
(
'rm -rf %s
\n
'
%
(
run
.
env
.
workdir
))
...
...
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