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
aa1fda22
"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "2082197d9e3c4bef8147c0406e5145b834d6124a"
Unverified
Commit
aa1fda22
authored
Sep 26, 2024
by
Jakob Görgen
Browse files
wait_terminate as simulator property
parent
0d56918d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
experiments/pyexps/netperf_sysconf.py
experiments/pyexps/netperf_sysconf.py
+1
-0
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
...imbricks/orchestration/runtime_new/simulation_executor.py
+1
-1
experiments/simbricks/orchestration/simulation/base.py
experiments/simbricks/orchestration/simulation/base.py
+9
-4
No files found.
experiments/pyexps/netperf_sysconf.py
View file @
aa1fda22
...
...
@@ -98,6 +98,7 @@ for host_type in host_types:
host_inst0
=
host_sim
(
simulation
)
host_inst0
.
add
(
host0
)
host_inst0
.
wait_terminate
=
True
host_inst1
=
host_sim
(
simulation
)
host_inst1
.
add
(
host1
)
...
...
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
View file @
aa1fda22
...
...
@@ -103,7 +103,7 @@ class ExperimentBaseRunner(abc.ABC):
if
delay
>
0
:
await
asyncio
.
sleep
(
delay
)
if
sim
.
wait_terminate
()
:
if
sim
.
wait_terminate
:
self
.
_wait_sims
.
append
(
sc
)
if
self
.
_verbose
:
...
...
experiments/simbricks/orchestration/simulation/base.py
View file @
aa1fda22
...
...
@@ -75,6 +75,15 @@ class Simulator(utils_base.IdObj):
def
extra_args
(
self
,
extra_args
:
str
):
self
.
_extra_args
=
extra_args
@
property
def
wait_terminate
(
self
)
->
bool
:
# TODO: FIXME If in the system config for e.g. an application is set that one has to wait for the app, we need to wait for the simulator as well!!!
return
self
.
_wait
@
wait_terminate
.
setter
def
wait_terminate
(
self
,
wait
:
bool
):
self
.
_wait
=
wait
@
staticmethod
def
filter_sockets
(
sockets
:
list
[
inst_base
.
Socket
],
...
...
@@ -266,10 +275,6 @@ class Simulator(utils_base.IdObj):
def
start_delay
(
self
)
->
int
:
return
5
# TODO: FIXME
def
wait_terminate
(
self
)
->
bool
:
return
self
.
_wait
def
supports_checkpointing
(
self
)
->
bool
:
return
False
...
...
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