Hey Negar and Nithesh,
  It looks like this is related to the change I made a couple weeks ago to
add support for specifying maximum simulation ticks (changeset
9816:971507cbbe65 http://repo.gem5.org/gem5/rev/971507cbbe65).  I have an
idea for a temporary quick-fix for you, and I'll try to get it to you this
afternoon.  If you don't want to wait for a fix, you could consider rolling
your repo back to changeset 9815:3b3b94536547:

  % hg update -r 9815
  Then rebuild.

  Sorry for any inconvenience,
  Joel


On Fri, Aug 2, 2013 at 8:31 AM, Negar Miralaei <[email protected]> wrote:

>  correction: findCptDir is in Simulation.py!
>
>
> On 02/08/13 14:29, Negar Miralaei wrote:
>
> Hi Fulya,
>
> Thanks for your reply. When you use the --at-instruction option on the
> command line, gem5 will consider the restore point as the instruction
> number. However, using the --checkpoint-restore=1 is not working either!
> There is a bug in the function findCptDir in se.py, which should be fixed
> (previously, there wasn't any problem using this option).
>
> Cheers
> Negar
>
> On 02/08/13 14:21, Fulya Kaplan wrote:
>
> Hi Negar,
> If I am not wrong, --checkpoint-restore does not take the instruction
> number as a parameter. If you have only 1 checkpoint in your checkpoint
> directory which you restore from, you should have --checkpoint-restore=1.
> With your current command, it may be searching for the  2200000000th
> checkpoint in that directory.
> Best,
> Fulya
>
>  On Fri, Aug 2, 2013 at 9:07 AM, Negar Miralaei <[email protected]> wrote:
>
>> Hi,
>>
>> I updated the gem5 on my machine after 2 months! I'm trying to put a
>> checkpoint at a particular instruction number, and then restoring from that
>> checkpoint, but I received an error! I could run the same command before
>> updating gem5. Here is the commands and the error. Did I miss any other
>> options on the command line?
>>
>> checkpoint:
>> build/ARM/gem5.fast 0 -d system/disks/CPU2000/output/bzip2_source/
>> configs/example/se.py --bench bzip2_source
>> --checkpoint-dir=system/disks/CPU2000/output/bzip2_source/
>> --max-checkpoints=1 --at-instruction --take-checkpoints 2200000000
>>
>> restore:
>> build/ARM/gem5.fast -d system/disks/CPU2000/output/bzip2_source/
>> configs/example/se.py --bench bzip2_source
>> --checkpoint-dir=system/disks/CPU2000/output/bzip2_source/ --at-instruction
>> --checkpoint-restore=2200000000
>>
>> error:
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>   File "/local/scratch/nm537/GEM5/gem5-v2/gem5/src/python/m5/main.py",
>> line 387, in main
>>     exec filecode in scope
>>   File "configs/example/se.py", line 243, in <module>
>>     Simulation.run(options, root, system, FutureClass)
>>   File
>> "/local/scratch/nm537/GEM5/gem5-v2/gem5/configs/common/Simulation.py", line
>> 414, in run
>>     cpt_starttick, checkpoint_dir = findCptDir(options, cptdir, testsys)
>>   File
>> "/local/scratch/nm537/GEM5/gem5-v2/gem5/configs/common/Simulation.py", line
>> 159, in findCptDir
>>     return cpt_starttick, checkpoint_dir
>> UnboundLocalError: local variable 'cpt_starttick' referenced before
>> assignment
>>
>> Thanks
>> Negar
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> _______________________________________________
> gem5-users mailing 
> [email protected]http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
>
> _______________________________________________
> gem5-users mailing 
> [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
>



-- 
  Joel Hestness
  PhD Student, Computer Architecture
  Dept. of Computer Science, University of Wisconsin - Madison
  http://pages.cs.wisc.edu/~hestness/
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to