Hi Timon,
Thank you to point this out.

On Thu, Aug 23, 2018 at 12:58 PM Timon Evenblij <evenblij.ti...@gmail.com>
wrote:

> Hi Sakshi,
>
> I did not check completely, but at first sight you are misinterpreting the
> --restore-with-cpu option.
> https://stackoverflow.com/questions/49011096/how-to-switch-cpu-models-in-gem5-after-restoring-a-checkpoint-and-then-observe-t
> has information on what it does: use --restore-with-cpu only if you made a
> checkpoint with a non-atomic cpu model. Otherwise, don't use this option
> and just say cpu-type=detailed or whatever model you want to use after
> resuming the checkpoint.
>
> The reasoning is that gem5 needs to know the exact model which the
> checkpoint was made with (normally this is the atomic model). It will
> resume the checkpoint using the --restore-with-cpu option (atomic by
> default) to set all the state correctly. After setting up the state, it
> will switch to the model specified with the regular --cpu-type option, to
> do the intended simulation. I have to admit it is a bit confusing, but
> hopefully you understand it now.
>
> Regards
>
> Timon
>
> On Wed, Aug 22, 2018 at 3:23 PM Abhishek Singh <
> abhishek.singh199...@gmail.com> wrote:
>
>> You can also use simpoints else just fast forward the start up
>> instruction and run for some instruction using -I
>>
>> On Wed, Aug 22, 2018 at 8:54 AM Sakshi Tiwari <sakshi.bo...@gmail.com>
>> wrote:
>>
>>> Can someone please reply to the query above? It will be really helpful.
>>>
>>> Regards,
>>> Sakshi
>>>
>>>
>>> On Fri, Aug 10, 2018 at 12:53 AM Sakshi Tiwari <sakshi.bo...@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am running gem5 in se mode and I am using SPEC2006 test suite for my
>>>> experiments. To run the representative section of each of the SPEC
>>>> benchmark I created simpoints. I have a few questions now:
>>>>
>>>> 1) Is it necessary to create checkpoints? Or is there any other way to
>>>> simply fast forward the simulation on a multi-core system?
>>>>
>>>> 2) If it is necessary to create checkpoints then can someone please
>>>> confirm if the following commands are correct. I am able to follow step (a)
>>>> and (b) but most of the SPEC benchmarks are failing when I run step (c).
>>>>  (a) Create checkpoint for each of the simpoint:
>>>> build/X86/gem5.opt configs/example/se.py
>>>> --take-simpoint-checkpoint=m5out/simpoints/libq/libq.simpoint,m5out/simpoints/libq/libq.weight,3000000,10000000
>>>> --cmd="benchmarks/ben/libquantum_base.amd64-m64-gcc43-nn" --options="1397
>>>> 8" --cpu-type=DerivO3CPU --l1d_size=32kB --l1i_size=32kB --l2_size=256kB
>>>> --caches --l2cache --l3cache --l3_size=8MB --num-cpus=1 --mem-size=8192MB
>>>> (b) Run checkpoint_aggregator script to aggregate the checkpoints
>>>> which would run on 4 different cores (I am running the same checkpoint on
>>>> all the 4 cores):
>>>> python util/checkpoint_aggregator.py -o
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/cpt.None.4
>>>> -c --cpts
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/cpt.simpoint_03_inst_1100000000_weight_0.069900_interval_3000000_warmup_10000000/
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/cpt.simpoint_03_inst_1100000000_weight_0.069900_interval_3000000_warmup_10000000/
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/cpt.simpoint_03_inst_1100000000_weight_0.069900_interval_3000000_warmup_10000000/
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/cpt.simpoint_03_inst_1100000000_weight_0.069900_interval_3000000_warmup_10000000/
>>>> --memory-size 8589934592
>>>> (c) Run the simulation in atomic mode and restore it to the normal mode
>>>> (i.e. Timing+O3) from the aggregated checkpoint:
>>>> build/X86/gem5.opt configs/example/se.py --at-instruction
>>>> --checkpoint-restore=4 --restore-with-cpu=detailed --checkpoint-dir
>>>> /home/sakshi/workspace2/gem5-63325e5b0a9d-modified/m5out/libq_cpt/
>>>> --cmd="benchmarks/ben/libquantum_base.amd64-m64-gcc43-nn;benchmarks/ben/libquantum_base.amd64-m64-gcc43-nn;benchmarks/ben/libquantum_base.amd64-m64-gcc43-nn;benchmarks/ben/libquantum_base.amd64-m64-gcc43-nn"
>>>> --options="1397 8;1397 8;1397 8;1397 8" --cpu-type=DerivO3CPU
>>>> --l1d_size=32kB --l1i_size=32kB --l2_size=256kB --caches --l2cache
>>>> --l3cache --l3_size=8MB --num-cpus=4 --mem-size=8192MB -I 100000000
>>>>
>>>> Regards,
>>>> Sakshi
>>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>> _______________________________________________
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to