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
019f173c
Commit
019f173c
authored
Aug 16, 2024
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Aug 18, 2024
Browse files
orchestration: always wait for all instances of gem5 and Simics when creating checkpoints
parent
7c21c5d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
experiments/simbricks/orchestration/runners.py
experiments/simbricks/orchestration/runners.py
+1
-1
experiments/simbricks/orchestration/simulators.py
experiments/simbricks/orchestration/simulators.py
+9
-3
No files found.
experiments/simbricks/orchestration/runners.py
View file @
019f173c
...
...
@@ -103,7 +103,7 @@ class ExperimentBaseRunner(ABC):
if
delay
>
0
:
await
asyncio
.
sleep
(
delay
)
if
sim
.
wait_terminate
():
if
sim
.
wait_terminate
(
self
.
env
):
self
.
wait_sims
.
append
(
sc
)
if
self
.
verbose
:
...
...
experiments/simbricks/orchestration/simulators.py
View file @
019f173c
...
...
@@ -86,7 +86,7 @@ class Simulator(object):
def
start_delay
(
self
)
->
int
:
return
5
def
wait_terminate
(
self
)
->
bool
:
def
wait_terminate
(
self
,
env
:
ExpEnv
)
->
bool
:
return
False
...
...
@@ -243,7 +243,7 @@ class NetSim(Simulator):
def
sockets_wait
(
self
,
env
:
ExpEnv
)
->
tp
.
List
[
str
]:
return
[
s
for
(
_
,
s
)
in
self
.
listen_sockets
(
env
)]
def
wait_terminate
(
self
)
->
bool
:
def
wait_terminate
(
self
,
env
:
ExpEnv
)
->
bool
:
return
self
.
wait
def
init_network
(
self
)
->
None
:
...
...
@@ -368,7 +368,7 @@ class HostSim(Simulator):
deps
.
append
(
dev
)
return
deps
def
wait_terminate
(
self
)
->
bool
:
def
wait_terminate
(
self
,
env
:
ExpEnv
)
->
bool
:
return
self
.
wait
...
...
@@ -535,6 +535,9 @@ class Gem5Host(HostSim):
cmd
+=
' '
.
join
(
self
.
extra_config_args
)
return
cmd
def
wait_terminate
(
self
,
env
:
ExpEnv
)
->
bool
:
return
True
if
env
.
create_cp
else
self
.
wait
class
Gem5KvmHost
(
Gem5Host
):
...
...
@@ -718,6 +721,9 @@ class SimicsHost(HostSim):
return
cmd
+
'-e run'
def
wait_terminate
(
self
,
env
:
ExpEnv
)
->
bool
:
return
True
if
env
.
create_cp
else
self
.
wait
class
CorundumVerilatorNIC
(
NICSim
):
...
...
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