Hi Sharjeel,

Here's an example script that I've used:
https://github.com/powerjg/gem5/blob/features/tardis/configs/myconfigs/runkvm.py#L99.
In that same branch (features/tardis) there are also more complicated
scripts that fast-forward, switch CPUs, and reset stats.

In general, I strongly encourage people to *not* use fs/se.py. These
scripts were originally meant as small examples, but have grown to be
complicated, confusing, and very difficult to extend to non-standard
applications.

Jason

On Tue, Jul 4, 2017 at 5:03 AM SHARJEEL KHILJI <
[email protected]> wrote:

> Hi Jason,
> I am sorry but this is very old conversation but still if you please help.
> You said that I can modify the python script to dump stats and restart
> simulation. How can I do that and where in simulation.py I can do that.
> Thanks for your help.
>
> regards,
> sharjeel
>
>
> On 6 June 2017 at 19:11, Jason Lowe-Power <[email protected]> wrote:
>
>> Hi Sharjeel,
>>
>> There is a python function (dumpStats() IIRC), that will do what you
>> want. Therefore, you need to exit the simulation loop at the end of each
>> kernel. An easy way to do this is to annotate your benchmark with ROI
>> begin/end m5 magic instructions. You then modify the Python config script
>> to dump stats and restart simulation at the end of each ROI.
>>
>> Jason
>>
>> On Tue, Jun 6, 2017 at 3:15 AM SHARJEEL KHILJI <
>> [email protected]> wrote:
>>
>>> Hi,
>>> I want to dump stats at the end of every kernel that I run from the
>>> splash2 benchmark. How to dump stats from each kernel from splash2 at the
>>> end of execution of that particular kernel program and then again dump
>>> stats for the next program without exiting the simulation.
>>>
>>> any suggestions ?
>>> best regards,
>>>
>>> Sharjeel
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to