Hi,

According to that page on the wiki, perlbench can't be executed on gem5
in SE mode, see
http://gem5.org/SPEC_CPU2006_benchmarks#The_SPEC_CPU2006_testing_dataset_results
As Mahmood said, you should try another application from SPEC like bzip2.

Hope that helps,
Regards.

On 19/07/17 13:05, Mahmood Naderan wrote:
> Hi,
> As far as I remember, not all spec benchmarks run in the SE mode since it
> is probable that there exist unimplemented instructions. You can try other
> things such as bzip2, libquantum, ...
> Another less useful trick is to skip that instruction. However, if that
> instruction repeats so many times in the binary file, then you should think
> about something else.
> 
> 
> Regards,
> Mahmood
> 
> 
> 
> On Wed, Jul 19, 2017 at 3:20 PM, Zeynab Mohseni <[email protected]> wrote:
> 
>> Dear Sir/Madam,
>>
>> As I am beginner and unfortunately I did not found a complete tutorial
>> about running SPEC benchmark in gem5 simulator in your web page, I followed
>> the tutorial in (https://markgottscho.wordpress.com/2014/09/20/
>> tutorial-easily-running-spec-cpu2006-benchmarks-in-the-
>> gem5-simulator/comment-page-1/#comment-184) web page. I am using the
>> RISCV version of gem5, but before this, I tested the "
>> ./run_gem5_alpha_spec06_benchmark.sh perlbench
>> /home/ubuntu/GEM5_ALPHA/gem5/output_dir" command for ALPHA microprocessor
>> and I had the same error. after running the below command in the terminal,
>> there is an error related to instruction (panic: Unknown instruction
>> 0xa5378082 at pc 0x0000000000010fa4).
>>
>>
>> ~/GEM5_RISCV/gem5$ ./run_gem5_riscv_spec06_benchmark.sh perlbench
>> /home/ubuntu/GEM5_RISCV/gem5/output_dir
>>
>>
>> As follow you can find the result of running the addressed command for
>> RISCV version of gem5. It should be note that the perlbech.out,
>> perlbench.err and the stats.txt which are created after running the command
>> are empty.
>>
>>
>> I look froward to hearing from you.
>>
>> Sincerely,
>> Artemis
>>
>> ~/GEM5_RISCV/gem5$ ./run_gem5_riscv_spec06_benchmark.sh perlbench
>> /home/ubuntu/GEM5_RISCV/gem5/output_dir
>> Command line:
>> ./run_gem5_riscv_spec06_benchmark.sh perlbench
>> /home/ubuntu/GEM5_RISCV/gem5/output_dir
>> ================= Hardcoded directories ==================
>> GEM5_DIR:                                     /home/ubuntu/GEM5_RISCV/gem5
>> SPEC_DIR:                                     /home/ubuntu/cpu2006
>> ==================== Script inputs =======================
>> BENCHMARK:                                    perlbench
>> OUTPUT_DIR:
>> /home/ubuntu/GEM5_RISCV/gem5/output_dir
>> ==========================================================
>>
>> Changing to SPEC benchmark runtime directory: /home/ubuntu/cpu2006/
>> benchspec/CPU2006/400.perlbench/run/run_base_ref_riscv.0000
>>
>>
>> --------- Here goes nothing! Starting gem5! ------------
>>
>>
>> warn: DRAM device capacity (8192 Mbytes) does not match the address range
>> assigned (512 Mbytes)
>> gem5 Simulator System.  http://gem5.org
>> gem5 is copyrighted software; use the --copyright option for details.
>>
>> gem5 compiled Jul 17 2017 16:51:43
>> gem5 started Jul 19 2017 12:00:55
>> gem5 executing on ubuntu-VirtualBox, pid 7547
>> command line: /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt
>> --outdir=/home/ubuntu/GEM5_RISCV/gem5/output_dir
>> /home/ubuntu/GEM5_RISCV/gem5/configs/example/spec06_config.py
>> --benchmark=perlbench --benchmark_stdout=/home/
>> ubuntu/GEM5_RISCV/gem5/output_dir/perlbench.out --benchmark_stderr=/home/
>> ubuntu/GEM5_RISCV/gem5/output_dir/perlbench.err
>>
>> Selected SPEC_CPU2006 benchmark
>> --> perlbench
>> Process stdout file: /home/ubuntu/GEM5_RISCV/gem5/output_dir/perlbench.out
>> Process stderr file: /home/ubuntu/GEM5_RISCV/gem5/output_dir/perlbench.err
>> ['/home/ubuntu/cpu2006/benchspec/CPU2006/400.perlbench/run/run_base_ref_
>> riscv.0000/perlbench_base.riscv', '-I./lib', 'checkspam.pl', '2500', '5',
>> '25', '11', '150', '1', '1', '1', '1']
>> Global frequency set at 1000000000000 ticks per second
>> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
>> info: Entering event queue @ 0.  Starting simulation...
>> **** REAL SIMULATION ****
>> panic: Unknown instruction 0xa5378082 at pc 0x0000000000010fa4
>> Memory Usage: 636556 KBytes
>> Program aborted at tick 1500
>> --- BEGIN LIBC BACKTRACE ---
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> Z15print_backtracev+0x28)[0x1040588]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_Z12abortHandleri+0x46)[
>> 0x1054586]
>> /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f71fe6e3390]
>> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f71fd0eb428]
>> /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f71fd0ed02a]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> ZN8RiscvISA16UnknownInstFault9invoke_seEP13ThreadContextRK14RefCoun
>> tingPtrI10StaticInstE+0x1a8)[0xcaba68]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> ZN8RiscvISA10RiscvFault6invokeEP13ThreadContextRK14RefCounti
>> ngPtrI10StaticInstE+0x30)[0xcab7c0]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> ZN13BaseSimpleCPU9advancePCERKSt10shared_ptrI9FaultBaseE+0xd9)[0xf021d9]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> ZN15AtomicSimpleCPU4tickEv+0x448)[0xef9a38]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> ZN10EventQueue10serviceOneEv+0x11d)[0x10471cd]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> Z9doSimLoopP10EventQueue+0x50)[0x1060b80]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> Z8simulatem+0x34b)[0x106129b]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_ZZN8pybind1112cpp_
>> function10initializeIRPFP22GlobalSimLoopExitEventmES3_
>> JmEJNS_4nameENS_5scopeENS_7siblingENS_5arg_vEEEEvOT_
>> PFT0_DpT1_EDpRKT2_ENUlRNS_6detail13function_callEE1_4_
>> FUNESO_+0x4f)[0xdd065f]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_ZN8pybind1112cpp_
>> function10dispatcherEP7_objectS2_S2_+0xe24)[0xa6afd4]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7852)[
>> 0x7f71fe9ad552]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
>> 0x7f71fead701c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[
>> 0x7f71fe9accfd]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7124)[
>> 0x7f71fe9ace24]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x7124)[
>> 0x7f71fe9ace24]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
>> 0x7f71fead701c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_
>> EvalCode+0x19)[0x7f71fe9a5b89]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x613b)[
>> 0x7f71fe9abe3b]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
>> 0x7f71fead701c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6ffd)[
>> 0x7f71fe9accfd]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x85c)[
>> 0x7f71fead701c]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_
>> EvalCode+0x19)[0x7f71fe9a5b89]
>> /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[
>> 0x7f71fea13166]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_
>> Z6m5MainiPPc+0x8f)[0x1051b5f]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(main+0x33)[0x83b873]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f71fd0d6830]
>> /home/ubuntu/GEM5_RISCV/gem5/build/RISCV/gem5.opt(_start+0x29)[0x8571d9]
>> --- END LIBC BACKTRACE ---
>>
>>
>>
>> [image: 1484656507333_OutlookEmoji-1484656219114_image001.png.png]
>> Zeynab (Artemis) Mohseni
>> Researcher / PhD Candidate
>>
>> ARIES RESEARCH CENTER
>> h <http://www.nebrija.es/aries>ttp://www.nebrija.es/aries
>>
>> La Dehesa de La Villa Campus
>> 55, Prineos Street, Madrid, 28040
>> Spain
>>
>> (+34) 91 452 11 00 (ext. 2807)
>> [email protected] <[email protected]>
>> www.nebrija.com
>>
>>
>>
>> _______________________________________________
>> 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
> 

-- 
+--------------------------------------------------------------+
| Pierre-Yves Péneau - PhD candidate | first.last at lirmm.fr  |
| LIRMM / CNRS - ADAC research group |   + 33 4 67 41 86 65    |
| Building 4 Office 2.92             |   http://walafc0.org    |
+--------------------------------------------------------------+

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to