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
8a5e54cb
Commit
8a5e54cb
authored
Sep 13, 2024
by
Hejing Li
Browse files
some more errors
parent
907fda7b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
experiments/pyexps/netperf_sysconf.py
experiments/pyexps/netperf_sysconf.py
+6
-6
experiments/simbricks/orchestration/runtime_new/runs/local.py
...riments/simbricks/orchestration/runtime_new/runs/local.py
+1
-1
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
...imbricks/orchestration/runtime_new/simulation_executor.py
+1
-1
experiments/simbricks/orchestration/system/host/base.py
experiments/simbricks/orchestration/system/host/base.py
+1
-1
No files found.
experiments/pyexps/netperf_sysconf.py
View file @
8a5e54cb
...
...
@@ -24,7 +24,7 @@ pcie0 = system.PCIeHostInterface(host0)
host0
.
add_if
(
pcie0
)
nic0
=
system
.
IntelI40eNIC
(
sys
)
nic0
.
add_ipv4
(
'10.0.0.1'
)
pcichannel0
=
system
.
PCIeChannel
(
pcie0
,
nic0
.
pci_if
)
pcichannel0
=
system
.
PCIeChannel
(
pcie0
,
nic0
.
_
pci_if
)
# create a host instance and a NIC instance then install the NIC on the host
host1
=
system
.
I40ELinuxHost
(
sys
)
...
...
@@ -32,18 +32,18 @@ pcie1 = system.PCIeHostInterface(host1)
host1
.
add_if
(
pcie0
)
nic1
=
system
.
IntelI40eNIC
(
sys
)
nic1
.
add_ipv4
(
'10.0.0.2'
)
pcichannel1
=
system
.
PCIeChannel
(
pcie1
,
nic1
.
pci_if
)
pcichannel1
=
system
.
PCIeChannel
(
pcie1
,
nic1
.
_
pci_if
)
# create switch and its ports
switch
=
system
.
EthSwitch
(
sys
)
netif0
=
system
.
EthInterface
(
switch
)
switch
.
if_
add
(
netif0
)
switch
.
add
_if
(
netif0
)
netif1
=
system
.
EthInterface
(
switch
)
switch
.
if_
add
(
netif1
)
switch
.
add
_if
(
netif1
)
# create channels and connect the switch to the host nics
ethchannel0
=
system
.
EthChannel
(
switch
.
eth_ifs
[
0
],
nic0
.
eth_if
)
ethchannel1
=
system
.
EthChannel
(
switch
.
eth_ifs
[
1
],
nic1
.
eth_if
)
ethchannel0
=
system
.
EthChannel
(
switch
.
eth_ifs
[
0
],
nic0
.
_
eth_if
)
ethchannel1
=
system
.
EthChannel
(
switch
.
eth_ifs
[
1
],
nic1
.
_
eth_if
)
# configure the software to run on the host
host0
.
add_app
(
system
.
NetperfClient
(
host0
,
nic1
.
ip
))
...
...
experiments/simbricks/orchestration/runtime_new/runs/local.py
View file @
8a5e54cb
...
...
@@ -76,7 +76,7 @@ class LocalSimpleRuntime(run_base.Runtime):
async
def
start
(
self
)
->
None
:
"""Execute the runs defined in `self.runnable`."""
for
run
in
self
.
runnable
:
for
run
in
self
.
_
runnable
:
if
self
.
_interrupted
:
return
...
...
experiments/simbricks/orchestration/runtime_new/simulation_executor.py
View file @
8a5e54cb
...
...
@@ -260,7 +260,7 @@ class ExperimentDistributedRunner(ExperimentBaseRunner):
# TODO: FIXME
def
__init__
(
self
,
execs
:
dict
[
sim
->
command_executor
.
Executor
]
,
exp
:
DistributedExperiment
,
*
args
,
**
kwargs
self
,
execs
,
exp
:
DistributedExperiment
,
*
args
,
**
kwargs
)
->
None
:
self
.
execs
=
execs
super
().
__init__
(
exp
,
*
args
,
**
kwargs
)
...
...
experiments/simbricks/orchestration/system/host/base.py
View file @
8a5e54cb
...
...
@@ -41,7 +41,7 @@ class Host(base.Component):
return
self
.
pcie_ifs
+
self
.
eth_ifs
+
self
.
mem_ifs
def
add_if
(
self
,
interface
:
base
.
Interface
)
->
None
:
self
.
ifs
.
append
(
i
)
self
.
ifs
.
append
(
i
nterface
)
def
add_app
(
self
,
a
:
'Application'
)
->
None
:
self
.
applications
.
append
(
a
)
...
...
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