Hi, Try including the same caches configuration when you take checkpoint. Your first step do not have caches.
On Thu, Sep 17, 2020 at 11:31 AM Xuhao Chen via gem5-users < gem5-users@gem5.org> wrote: > Hi all, > I have a simple program: > #include <vector> > #include <stdio.h> > #include <stdlib.h> > #include "/home/cxh/gem5/include/gem5/m5ops.h" > > int main(int argc, char *argv[]) { > int n = 1024 * 1024; > if(argc == 2) n = atoi(argv[1]); > printf("Vector Addition num = %d\n", n); > std::vector<float> a(n, 1), b(n, 1), c(n, 0); > printf("Begin of ROI\n"); > m5_checkpoint(0,0); > m5_reset_stats(0,0); > for(int i = 0; i < n; i ++) > c[i] = a[i] + b[i]; > m5_dump_stats(0,0); > printf("End of ROI\n"); > return 0; > } > > Compiled like this: > g++ -O3 test.cc -o test /home/cxh/gem5/util/m5/src/x86/m5op.S > -I/home/cxh/gem5/include > > Run it once to get checkpoint: > > build/X86/gem5.fast configs/example/se.py --cmd=/home/cxh/bin/test > --checkpoint-dir=/home/cxh/gem5/checkpoints/ --num-cpus=1 --mem-size=4GB > ... > Vector Addition num = 1048576 > Begin of ROI > Writing checkpoint > warn: Checkpoints for file descriptors currently do not work. > info: Entering event queue @ 6304095500. Starting simulation... > End of ROI > Exiting @ tick 8539105000 because exiting with last active thread context > > All good. Now I run it again to get detailed simulation: > > build/X86/gem5.fast configs/example/se.py --cmd=/home/cxh/bin/test > --checkpoint-dir=/home/cxh/gem5/checkpoints/ --num-cpus=1 --mem-size=4GB > --cpu-type=DerivO3CPU --caches --l1d_size=512kB -r 1 > ... > Switch at curTick count:10000 > info: Entering event queue @ 6304095500. Starting simulation... > Switched CPUS @ tick 6304105500 > switching cpus > warn: PowerState: Already in the requested power state, request ignored > **** REAL SIMULATION **** > info: Entering event queue @ 6304105500. Starting simulation... > End of ROI > *panic: Tried to execute unmapped address 0x7ffff7ce2380.* > Memory Usage: 4356324 KBytes > Program aborted at tick 13255676500 > --- BEGIN LIBC BACKTRACE --- > build/X86/gem5.fast(_Z15print_backtracev+0x2c)[0x5624e1432c7c] > build/X86/gem5.fast(_Z12abortHandleri+0x4a)[0x5624e144280a] > /lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7eff338008a0] > /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7eff31de9f47] > /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7eff31deb8b1] > build/X86/gem5.fast(+0x5bb72f)[0x5624e0c8e72f] > > build/X86/gem5.fast(_ZN6X86ISA9PageFault6invokeEP13ThreadContextRK14RefCountingPtrI10StaticInstE+0x5b8)[0x5624e15801a8] > > build/X86/gem5.fast(_ZN13DefaultCommitI9O3CPUImplE10commitHeadERK14RefCountingPtrI13BaseO3DynInstIS0_EEj+0x5f5)[0x5624e0d3d045] > > build/X86/gem5.fast(_ZN13DefaultCommitI9O3CPUImplE11commitInstsEv+0x1d2)[0x5624e0d3d3f2] > > build/X86/gem5.fast(_ZN13DefaultCommitI9O3CPUImplE6commitEv+0x860)[0x5624e0d3e370] > > build/X86/gem5.fast(_ZN13DefaultCommitI9O3CPUImplE4tickEv+0x89)[0x5624e0d3e589] > build/X86/gem5.fast(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x133)[0x5624e0d45453] > build/X86/gem5.fast(_ZN10EventQueue10serviceOneEv+0xd9)[0x5624e1439259] > build/X86/gem5.fast(_Z9doSimLoopP10EventQueue+0x87)[0x5624e1456e47] > build/X86/gem5.fast(_Z8simulatem+0xc8a)[0x5624e1457e1a] > build/X86/gem5.fast(+0xe1acc1)[0x5624e14edcc1] > build/X86/gem5.fast(+0x7ccaea)[0x5624e0e9faea] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x64d7)[0x7eff33aadc47] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7eff33aad366] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7eff33aad366] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7eff33aad366] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7eff33aa75d9] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ac0)[0x7eff33aae230] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5bf6)[0x7eff33aad366] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7eff33bec908] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7eff33aa75d9] > > /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[0x7eff33b576f6] > --- END LIBC BACKTRACE --- > Aborted (core dumped) > > > Any idea why this error is happening? > > Thank you! > > Best, > Xuhao > _______________________________________________ > > gem5-users mailing list -- gem5-users@gem5.org > > To unsubscribe send an email to gem5-users-le...@gem5.org > > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s -- Best Regards, Abhishek
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s