运行gem5时缺少“ systemc”

时间:2019-02-28 22:27:56

标签: gem5

我刚刚从GitHub下载了一个新的gem5副本。我的目标是遵循官方guidelines独立运行Garnet2.0。 使用以下命令成功运行Gem5

scons build/NULL/gem5.debug PROTOCOL=Garnet_standalone

但是当我运行以下命令

./build/NULL_MOESI_CMP_token/gem5.debug configs/example/garnet_synth_traffic.py --num-cpus=16 --num-dirs=16 --network=garnet2.0 --topology=Mesh_XY --mesh-rows=4 --sim-cycles=1000 --synthetic=uniform_random --injectionrate=0.01

我收到以下错误

  File "<string>", line 1, in <module>
  File "build/NULL/python/importer.py", line 83, in load_module
    exec(code, mod.__dict__)
  File "build/NULL/python/m5/__init__.py", line 55, in <module>
    from . import systemc
ImportError: cannot import name systemc

我和Gem5玩了一段时间,没问题。但是随着最近的更新,我得到了这个错误。

1 个答案:

答案 0 :(得分:0)

每当我遇到 systemc 错误时,我都会完全删除构建文件夹 (sudo rm -r build/) 并重建它。对我有用。