"...composable_kernel.git" did not exist on "341ad956657a0ad3501af0dcceeddb5018449de6"
Commit 165bdb15 authored by Jialin Li's avatar Jialin Li
Browse files

experiments: add sync_mode option to gem5 hosts

parent 7c84ddb5
...@@ -22,6 +22,7 @@ class HostSim(Simulator): ...@@ -22,6 +22,7 @@ class HostSim(Simulator):
sleep = 0 sleep = 0
cpu_freq = '3GHz' cpu_freq = '3GHz'
sync_mode = 0
sync_period = 500 sync_period = 500
pci_latency = 500 pci_latency = 500
...@@ -181,6 +182,7 @@ class Gem5Host(HostSim): ...@@ -181,6 +182,7 @@ class Gem5Host(HostSim):
cmd += f'--cosim-shm={env.nic_shm_path(nic)} ' cmd += f'--cosim-shm={env.nic_shm_path(nic)} '
if cpu_type == 'TimingSimpleCPU': if cpu_type == 'TimingSimpleCPU':
cmd += '--cosim-sync ' cmd += '--cosim-sync '
cmd += f'--cosim-sync_mode={self.sync_mode} '
cmd += f'--cosim-pci-lat={self.pci_latency} ' cmd += f'--cosim-pci-lat={self.pci_latency} '
cmd += f'--cosim-sync-int={self.sync_period} ' cmd += f'--cosim-sync-int={self.sync_period} '
if isinstance(nic, I40eNIC): if isinstance(nic, I40eNIC):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment