I have been adding benchmark examples to my lecture and I ran into an 
interesting problem. The python code was based on the simple.py from the 
learning_gem5 directory. I have been using the gem-x86 code created by 
dockerscript as part of the bootcamp 2022 tutorial. It produces the following 
error when I try to run:

I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ gem5-x86 
configs/learning_gem5/part1/simple.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 22.1.0.0
gem5 compiled Jun 18 2023 14:06:41
gem5 started Jul  2 2023 20:53:06
gem5 executing on ab17918db0fa, pid 21
command line: gem5-x86 configs/learning_gem5/part1/simple.py

KeyError: ('TARGET_ISA',)

At:
  configs/learning_gem5/part1/simple.py(70): <module>
  build/X86/python/m5/main.py(597): main

When I substitute the compiled gem5.opt (not running from /usr/local/bin) It 
seems to work fine:

I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$ 
build/X86/gem5.opt configs/learning_gem5/part1/simple.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 22.0.0.0
gem5 compiled Jun 19 2023 17:46:09
gem5 started Jul  2 2023 20:55:40
gem5 executing on ab17918db0fa, pid 22
command line: build/X86/gem5.opt configs/learning_gem5/part1/simple.py

Global frequency set at 1000000000000 ticks per second
build/X86/mem/dram_interface.cc:690: warn: DRAM device capacity (8192 Mbytes) 
does not match the address range assigned (512 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
Beginning simulation!
build/X86/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting 
simulation...
Hello world!
Exiting @ tick 508634000 because exiting with last active thread context
I have no name!@ab17918db0fa:/home/besernd1/gem5-bootcamp-env/gem5$

Any ideas what is going on here?

Nick



From: Nick Felker <han...@gmail.com>
Sent: Thursday, June 29, 2023 11:07 AM
To: The gem5 Users mailing list <gem5-users@gem5.org>
Cc: Beser, Nicholas D. <nick.be...@jhuapl.edu>
Subject: [EXT] Re: [gem5-users] Running benchmarks and gem5art

APL external email warning: Verify sender 
han...@gmail.com<mailto:han...@gmail.com> before clicking links or attachments



I managed to run STREAM and Whetstone/Dhrystone

https://fleker.medium.com/running-and-evaluating-stream-benchmark-for-nvm-in-gem5-3dd07ae9ccaa

https://fleker.medium.com/building-running-whetstone-dhrystone-in-gem5-90d465a10bb4

As you had mentioned, some of them are proprietary and that made it hard to 
obtain and run.

On Thu, Jun 29, 2023, 10:23 AM Beser, Nicholas D. via gem5-users 
<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote:
I have been preparing a lecture for my computer architecture class on running 
benchmarks using gem5. I noticed when I searched the web for examples, gem5art 
came up. I had been using the bootcamp 2022 tutorial as a guideline, so I am 
not sure where gem5art fits in. 
(https://www.gem5.org/documentation/gem5art/introduction). I was looking for a 
concise tutorial showing how to run benchmarks. The examples I had found 
previous featured spec2006 and spec2017 which, while interesting, can’t be run 
due to the proprietary nature of their code.  Ideally, I would not like to run 
the benchmarks as FS due to the amount of time required to run.

I am open to suggestions about what type of benchmark I could use. The spec 
benchmarks have been published in texts, and papers, and would have made a nice 
impression on the class.   I enjoyed the bootcamp  youtube videos. It made a 
nice way of coming up to speed.

Nick
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to