I forgot to add the network flag:
$ ./build/NULL/gem5.debug configs/example/garnet_synth_traffic.py
--network=garnet2.0 --topology=Mesh_XY --num-cpus=16 --num-dirs=16
--mesh-rows=4
But still the same *ValueError* persists.


On Tue, Mar 19, 2019 at 10:50 PM Rishabh Jain <[email protected]> wrote:

> Hello everyone,
>
> I have build the garnet standalone model using:
> $scons build/NULL/gem5.debug PROTOCOL=Garnet_standalone -j9
>
> While running command:
> $ ./build/NULL/gem5.debug configs/example/garnet_synth_traffic.py
> --topology=Mesh_XY --num-cpus=16 --num-dirs=16 --mesh-rows=4
>
> I get a ValueError: " ValueError: Attempted relative import in non-package"
>
> The console log is :
> ******
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
> gem5 compiled Mar 19 2019 22:22:28
> gem5 started Mar 19 2019 22:40:18
> gem5 executing on redbull, pid 29669
> command line: ./build/NULL/gem5.debug
> configs/example/garnet_synth_traffic.py --topology=Mesh_XY --num-cpus=16
> --num-dirs=16 --mesh-rows=4
>
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "build/NULL/python/m5/main.py", line 438, in main
>     exec(filecode, scope)
>   File "configs/example/garnet_synth_traffic.py", line 92, in <module>
>     os.path.join(config_root, "common", "Options.py"), 'exec'))
>   File "/home/rishu/rishu/gem5/configs/common/Options.py", line 48, in
> <module>
>     from .Benchmarks import *
> ValueError: Attempted relative import in non-package
> *****
>
> But, when I use the mercurial repository of gem5 (I know its outdated),
> the above command works just fine.
> Can somebody help me in debugging the error?
>
> Best,
> Rishabh Jain
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to