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
24d55893
Commit
24d55893
authored
Sep 13, 2024
by
Hejing Li
Browse files
run_new.py: some errors
parent
38786da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
experiments/run_new.py
experiments/run_new.py
+5
-5
No files found.
experiments/run_new.py
View file @
24d55893
...
@@ -301,7 +301,7 @@ def add_exp(
...
@@ -301,7 +301,7 @@ def add_exp(
run
=
runs
.
base
.
Run
(
run
=
runs
.
base
.
Run
(
simulation
=
simulation
,
simulation
=
simulation
,
inst
_env
=
inst_env
,
inst
antiation
=
inst_env
,
prereq
=
prereq
,
prereq
=
prereq
,
)
)
...
@@ -360,8 +360,8 @@ def main():
...
@@ -360,8 +360,8 @@ def main():
for
sim
in
simulations
:
for
sim
in
simulations
:
# TODO: do we want a sitributed SImulation class? --> probably not, choose slightly different abstraction
# TODO: do we want a sitributed SImulation class? --> probably not, choose slightly different abstraction
if
args
.
auto_dist
and
not
isinstance
(
sim
,
exps
.
DistributedExperiment
):
if
args
.
auto_dist
and
not
isinstance
(
sim
,
sim_base
.
DistributedExperiment
):
sim
=
run
time
.
auto_dist
(
sim
,
executors
,
args
.
proxy_type
)
sim
=
run
s
.
auto_dist
(
sim
,
executors
,
args
.
proxy_type
)
# apply filter if any specified
# apply filter if any specified
if
(
args
.
filter
)
and
(
len
(
args
.
filter
)
>
0
):
if
(
args
.
filter
)
and
(
len
(
args
.
filter
)
>
0
):
...
@@ -378,12 +378,12 @@ def main():
...
@@ -378,12 +378,12 @@ def main():
# it
# it
# TODO: what to do / how to handel checkpointing
# TODO: what to do / how to handel checkpointing
if
sim
.
checkpoint
:
if
sim
.
checkpoint
:
prereq
=
add_exp
(
e
,
rt
,
0
,
None
,
True
,
False
,
args
)
prereq
=
add_exp
(
sim
,
rt
,
0
,
None
,
True
,
False
,
args
)
else
:
else
:
prereq
=
None
prereq
=
None
for
run
in
range
(
args
.
firstrun
,
args
.
firstrun
+
args
.
runs
):
for
run
in
range
(
args
.
firstrun
,
args
.
firstrun
+
args
.
runs
):
add_exp
(
e
,
rt
,
run
,
prereq
,
False
,
sim
.
checkpoint
,
args
)
add_exp
(
sim
,
rt
,
run
,
prereq
,
False
,
sim
.
checkpoint
,
args
)
else
:
else
:
# otherwise load pickled run object
# otherwise load pickled run object
for
path
in
args
.
experiments
:
for
path
in
args
.
experiments
:
...
...
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