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<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