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
13673a6f
Commit
13673a6f
authored
May 04, 2023
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
May 09, 2023
Browse files
orchestration: use SimBricks PCIe adapter for Simics
parent
edc84de6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
experiments/simbricks/orchestration/simulators.py
experiments/simbricks/orchestration/simulators.py
+19
-1
No files found.
experiments/simbricks/orchestration/simulators.py
View file @
13673a6f
...
...
@@ -537,7 +537,8 @@ class SimicsHost(HostSim):
f
'freq_mhz =
{
self
.
cpu_freq
}
'
f
'num_cores =
{
self
.
node_config
.
cores
}
'
f
'num_threads =
{
self
.
node_config
.
threads
}
'
f
'memory_megs =
{
self
.
node_config
.
memory
}
\'
'
f
'memory_megs =
{
self
.
node_config
.
memory
}
'
'create_network = FALSE
\'
'
)
if
env
.
create_cp
:
...
...
@@ -614,6 +615,23 @@ class SimicsHost(HostSim):
if
self
.
debug_messages
:
cmd
+=
'-e
\'
$mem.log-level 3
\'
'
if
self
.
pcidevs
:
cmd
+=
'-e
\'
load-module simbricks_pcie_comp
\'
'
i
=
0
for
pcidev
in
self
.
pcidevs
:
cmd
+=
(
f
'-e
\'
$pci = (create-simbricks-pcie-comp '
f
'socket = "
{
env
.
dev_pci_path
(
pcidev
)
}
" '
f
'pci_latency =
{
self
.
pci_latency
}
'
f
'sync_period =
{
self
.
sync_period
}
)
\'
'
)
cmd
+=
f
'-e
\'
connect board.mb.nb.pci_slot[
{
i
}
] $pci.pci_bus
\'
'
cmd
+=
'-e instantiate-components '
if
self
.
debug_messages
:
cmd
+=
'-e
\'
$pci.log-level 3
\'
'
i
+=
1
for
param
in
self
.
append_cmdline
:
cmd
+=
f
'
{
param
}
'
...
...
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