Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
RC Data Science
DMTCP Checkpointing Tutorial
Commits
32f82f19
Commit
32f82f19
authored
Mar 04, 2021
by
William Ellis Warriner
Browse files
bug fixes
parent
5941375a
Changes
2
Hide whitespace changes
Inline
Side-by-side
job.sh
View file @
32f82f19
...
@@ -23,4 +23,4 @@ conda activate dmtcp-tutorial
...
@@ -23,4 +23,4 @@ conda activate dmtcp-tutorial
# accepts a checkpoint interval in seconds. The python flag -u requests
# accepts a checkpoint interval in seconds. The python flag -u requests
# unbuffered streams, so logging is real-time. The value 100 is the number of
# unbuffered streams, so logging is real-time. The value 100 is the number of
# steps to run in the loop in `task.py`.
# steps to run in the loop in `task.py`.
dmtcp_launch
-i
5
"
python -u task.py 100
"
dmtcp_launch
-i
5 python
-u
task.py 100
task.py
View file @
32f82f19
...
@@ -76,7 +76,7 @@ def interface() -> None:
...
@@ -76,7 +76,7 @@ def interface() -> None:
help
=
"positive integer number of steps to run, clipped to 100"
,
help
=
"positive integer number of steps to run, clipped to 100"
,
)
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
steps
=
args
.
steps
[
0
]
steps
=
args
.
steps
steps
=
min
(
steps
,
100
)
steps
=
min
(
steps
,
100
)
task
(
steps
)
task
(
steps
)
...
...
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