Hi,
I believe this is because certain stats names have changed in recent times.
Specifically, the error you sent shows that it is not able to get
'sim_seconds' from the stats file. Can you provide the stats file from your
simulation?

It would be great if you can submit a change to gem5 dev doing these fixes.

Thanks,
Srikant

On Wed, Apr 5, 2023 at 4:04 AM Ali Karazmoodeh via gem5-users <
gem5-users@gem5.org> wrote:

> Hello.
> I want to estimate the power and area of some Network-on-Chip topologies
> using DSENT. I have followed the instructions in gem5-users given by Dr.
> Krishna (https://www.mail-archive.com/gem5-users@gem5.org/msg15749.html)
> for this purpose.
> First, I simulated a Mesh_XY topology with synthetic traffic using this
> command:
> build/NULL/gem5.opt configs/example/garnet_synth_traffic.py
> --network=garnet --num-cpus=64 --num-dirs=64 --topology=Mesh_XY
> --mesh-rows=8  --sim-cycles=10000000 --synthetic=uniform_random
> --precision=3 --injectionrate=0.02 --router-latency=1 --link-latency=1
> --link-width-bits=16 --routing-algorithm=0
> Then, I built dsent using this command:
> python ./util/on-chip-network-power-area.py . m5out
> ext/dsent/configs/router.cfg ext/dsent/configs/electrical-link.cfg
> After that, it compiles dsent, but it gives this error:
> ("ERROR: Garnet network not used in '", './m5out/config.ini')
> To get past this error, I changed line 70 in on-chip-network-power-area.py
> from
> [image: before.png]
> to
> [image: after.png]
> But now I get the following error:
> Traceback (most recent call last):
>   File "./util/on-chip-network-power-area.py", line 219, in <module>
>     main()
>   File "./util/on-chip-network-power-area.py", line 216, in main
>     buffers_per_control_vc, ni_flit_size_bits)
>   File "./util/on-chip-network-power-area.py", line 161, in parseStats
>     ["grep", pattern, stats_file]), '\n', -1)
>   File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
>     raise CalledProcessError(retcode, cmd, output=output)
> subprocess.CalledProcessError: Command '['grep', 'sim_seconds',
> './m5out/stats.txt']' returned non-zero exit status 1
> It seems that on-chip-network-power-area.py cannot parse the stats. What
> causes this error to happen and how can I fix it?
>
> Warm regards,
> Ali
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to