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
475b21b4
Commit
475b21b4
authored
May 26, 2022
by
Antoine Kaufmann
Browse files
sims/external/gem5: update (new config parameter format)
parent
aceab6af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
experiments/simbricks/simulators.py
experiments/simbricks/simulators.py
+6
-18
sims/external/gem5
sims/external/gem5
+1
-1
No files found.
experiments/simbricks/simulators.py
View file @
475b21b4
...
@@ -313,31 +313,19 @@ class Gem5Host(HostSim):
...
@@ -313,31 +313,19 @@ class Gem5Host(HostSim):
f
'--num-cpus=
{
self
.
node_config
.
cores
}
'
f
'--num-cpus=
{
self
.
node_config
.
cores
}
'
'--ddio-enabled --ddio-way-part=8 --mem-type=DDR4_2400_16x4 '
)
'--ddio-enabled --ddio-way-part=8 --mem-type=DDR4_2400_16x4 '
)
if
(
env
.
no_simbricks
):
cmd
+=
'--no-simbricks '
if
env
.
create_cp
:
if
env
.
create_cp
:
cmd
+=
'--max-checkpoints=1 '
cmd
+=
'--max-checkpoints=1 '
if
env
.
restore_cp
:
if
env
.
restore_cp
:
cmd
+=
'-r 1 '
cmd
+=
'-r 1 '
if
len
(
self
.
pcidevs
)
>
0
:
for
dev
in
self
.
pcidevs
:
assert
len
(
self
.
pcidevs
)
==
1
# our gem5 python script supports only 1
cmd
+=
(
f
'--simbricks-pci=connect:
{
env
.
dev_pci_path
(
dev
)
}
'
dev
=
self
.
pcidevs
[
0
]
f
':latency=
{
self
.
pci_latency
}
ns'
cmd
+=
f
'--simbricks-pci=
{
env
.
dev_pci_path
(
dev
)
}
'
f
':sync_interval=
{
self
.
sync_period
}
ns'
)
cmd
+=
f
'--simbricks-shm=
{
env
.
dev_shm_path
(
dev
)
}
'
if
cpu_type
==
'TimingSimpleCPU'
:
if
cpu_type
==
'TimingSimpleCPU'
:
cmd
+=
'--simbricks-sync '
cmd
+=
':sync'
cmd
+=
f
'--simbricks-sync_mode=
{
self
.
sync_mode
}
'
cmd
+=
' '
cmd
+=
f
'--simbricks-pci-lat=
{
self
.
pci_latency
}
'
cmd
+=
f
'--simbricks-sync-int=
{
self
.
sync_period
}
'
if
isinstance
(
dev
,
I40eNIC
)
or
\
(
isinstance
(
dev
,
MultiSubNIC
)
and
\
isinstance
(
dev
.
multinic
,
I40eMultiNIC
)):
cmd
+=
'--simbricks-type=i40e '
elif
isinstance
(
dev
,
FEMUDev
):
cmd
+=
'--simbricks-type=femu '
return
cmd
return
cmd
...
...
gem5
@
de59c2e8
Compare
f933e452
...
de59c2e8
Subproject commit
f933e452c6c315531d1ca2318adf6478721e10a6
Subproject commit
de59c2e89393a49cda0b10769d6c084a2f5055e7
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