Thanks Andreas and Jason for your help. Just to make sure, should I use following command to keep my gem5 repository up to date:
hg clone http://repo.gem5.org/gem5 ? Muzamil On Tue, Jan 17, 2017 at 11:00 AM, <[email protected]> wrote: > Send gem5-users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gem5-users digest..." > > > Today's Topics: > > 1. HMC Simulation (Muzamil Rafique) > 2. Re: HMC Simulation (Andreas Hansson) > 3. Multithreading in gem5, full system mode (Jasmin Jahic) > 4. Re: HMC Simulation (Jason Lowe-Power) > 5. Re: Multithreading in gem5, full system mode (Jason Lowe-Power) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 16 Jan 2017 21:51:23 -0600 > From: Muzamil Rafique <[email protected]> > To: [email protected] > Subject: [gem5-users] HMC Simulation > Message-ID: > <CAE0R89Bt6DrTxfOdvepiYqbmk5HzbLjxp76rpf1WGjVBUpReug@mail. > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > Thanks Andreas Hansson and Abdul Mutaal for your response. But still I have > couple of issues. > > > *1.* I have downloaded latest version of gem 5 and tried to simulate > hmctest.py in folder configs/example/hmctest.py using command: > > > build/ARM/gem5.opt configs/example/hmctest.py > > and get the following error. > > > warn: Cache line size is neither 16, 32, 64 nor 128 bytes. > info: Entering event queue @ 0. Starting simulation... > > gem5.opt: > > *build/ARM/mem/dram_ctrl.cc:684: void DRAMCtrl::processRespondEvent(): > Assertion `(dram_pkt->rankRef.pwrState == PWR_ACT) || > (dram_pkt->rankRef.pwrState == PWR_IDLE)' failed.*Program aborted at tick > 8384100 > > Just to make sure is it a bug or i did something wrong in running > simulation? > > *2.* I use to run basic tutorial on gem5 like > *configs/tutorial/two-level.py* by following instructions available > online. > But now same programs are not running on latest gem5 version and giving > errors like mentioned below. > > *command line: build/X86/gem5.opt configs/tutorial/two-level.py* > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/muzamil/GEM5/gem5/src/python/m5/main.py", line 400, in main > exec filecode in scope > File "configs/tutorial/two-level.py", line 92, in <module> > * system.cpu.interrupts.pio = system.membus.master* > File "/home/muzamil/GEM5/gem5/src/python/m5/params.py", line 239, in > __setattr__ > > *"Not allowed to set %s on '%s'" % (attr, > type(self).__name__)AttributeError: Not allowed to set pio on > 'SimObjectVector'* > > How to set "pio" to make it run. > > Thanks > Muzamil > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/ > attachments/20170116/7ee7dd6e/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Tue, 17 Jan 2017 03:57:00 +0000 > From: Andreas Hansson <[email protected]> > To: gem5 users mailing list <[email protected]> > Subject: Re: [gem5-users] HMC Simulation > Message-ID: <d4a2d5e0.48f1b%[email protected]> > Content-Type: text/plain; charset="utf-8" > > Hi Muzamil, > > The first issue is being addressed and patch will be pushed soon. > > The second issue would be good if you could clarify a bit further. Are you > suggesting the two-level script does not work out of the box? > > Thanks, > > Andreas > > From: gem5-users <[email protected]<mailto:gem5-users-bounces@ > gem5.org>> on behalf of Muzamil Rafique <[email protected]< > mailto:[email protected]>> > Reply-To: gem5 users mailing list <[email protected]<mailto:ge > [email protected]>> > Date: Monday, 16 January 2017 at 19:51 > To: "[email protected]<mailto:[email protected]>" <[email protected] > <mailto:[email protected]>> > Subject: [gem5-users] HMC Simulation > > Hi, > > Thanks Andreas Hansson and Abdul Mutaal for your response. But still I > have couple of issues. > > > 1. I have downloaded latest version of gem 5 and tried to simulate > hmctest.py in folder configs/example/hmctest.py using command: > > > build/ARM/gem5.opt configs/example/hmctest.py > > and get the following error. > > > warn: Cache line size is neither 16, 32, 64 nor 128 bytes. > info: Entering event queue @ 0. Starting simulation... > > gem5.opt: build/ARM/mem/dram_ctrl.cc:684: void > DRAMCtrl::processRespondEvent(): Assertion `(dram_pkt->rankRef.pwrState > == PWR_ACT) || (dram_pkt->rankRef.pwrState == PWR_IDLE)' failed. > > Program aborted at tick 8384100 > > Just to make sure is it a bug or i did something wrong in running > simulation? > > 2. I use to run basic tutorial on gem5 like configs/tutorial/two-level.py > by following instructions available online. But now same programs are not > running on latest gem5 version and giving errors like mentioned below. > > command line: build/X86/gem5.opt configs/tutorial/two-level.py > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/muzamil/GEM5/gem5/src/python/m5/main.py", line 400, in main > exec filecode in scope > File "configs/tutorial/two-level.py", line 92, in <module> > system.cpu.interrupts.pio = system.membus.master > File "/home/muzamil/GEM5/gem5/src/python/m5/params.py", line 239, in > __setattr__ > "Not allowed to set %s on '%s'" % (attr, type(self).__name__) > AttributeError: Not allowed to set pio on 'SimObjectVector' > > How to set "pio" to make it run. > > Thanks > Muzamil > > IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/ > attachments/20170117/54231daa/attachment-0001.html> > > ------------------------------ > > Message: 3 > Date: Tue, 17 Jan 2017 11:28:53 +0100 > From: Jasmin Jahic <[email protected]> > To: gem5 users mailing list <[email protected]> > Subject: [gem5-users] Multithreading in gem5, full system mode > Message-ID: > <CALJvyQHQ7+-AzCNaEqPVbyqA=QhPzqGHJ_RpmGW0+J8Uyxvv8g@mail. > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hello, > > I have one question regarding multi threading in gem5, in full system mode. > Since gem5 is seen as one process at host OS, how does gem5 actually > emulate multiple threads/processes? Let's say that we have 4 core CPU and > several processes and threads. Are these run in parallel really (one > instruction of this thread, then one instruction of another thread...?) or > there is some more complex mechanism? > > Is there perhaps a presentation or document which explains this? > > Best regards, > Jasmin JAHIC > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/ > attachments/20170117/1e79a3b9/attachment-0001.html> > > ------------------------------ > > Message: 4 > Date: Tue, 17 Jan 2017 14:52:57 +0000 > From: Jason Lowe-Power <[email protected]> > To: gem5 users mailing list <[email protected]> > Subject: Re: [gem5-users] HMC Simulation > Message-ID: > <CAFEhpUejROKjvoPWpMabb_TFDvZv1H2=TvhTcmZsXBFB715NUg@ > mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi Muzamil, > > For the Learning gem5 two-level script, there was a bug in an old version > of it. It should be "system.cpu.interrupts.pio[0]". > > The correct script can be downloaded here: > http://learning.gem5.org/book/_downloads/two_level.py. (Note: the > cannonical version of the book now lives at http://learning.gem5.org/.) > Also, you can always find a working version of the scripts in > gem5/configs/learning_gem5/. > > Cheers, > Jason > > On Tue, Jan 17, 2017 at 5:06 AM Andreas Hansson <[email protected]> > wrote: > > > Hi Muzamil, > > > > The first issue is being addressed and patch will be pushed soon. > > > > The second issue would be good if you could clarify a bit further. Are > you > > suggesting the two-level script does not work out of the box? > > > > Thanks, > > > > Andreas > > > > From: gem5-users <[email protected]> on behalf of Muzamil > > Rafique <[email protected]> > > Reply-To: gem5 users mailing list <[email protected]> > > Date: Monday, 16 January 2017 at 19:51 > > To: "[email protected]" <[email protected]> > > Subject: [gem5-users] HMC Simulation > > > > Hi, > > > > Thanks Andreas Hansson and Abdul Mutaal for your response. But still I > > have couple of issues. > > > > > > *1.* I have downloaded latest version of gem 5 and tried to simulate > > hmctest.py in folder configs/example/hmctest.py using command: > > > > > > build/ARM/gem5.opt configs/example/hmctest.py > > > > and get the following error. > > > > > > warn: Cache line size is neither 16, 32, 64 nor 128 bytes. > > info: Entering event queue @ 0. Starting simulation... > > > > gem5.opt: > > > > *build/ARM/mem/dram_ctrl.cc:684: void DRAMCtrl::processRespondEvent(): > > Assertion `(dram_pkt->rankRef.pwrState == PWR_ACT) || > > (dram_pkt->rankRef.pwrState == PWR_IDLE)' failed. *Program aborted at > > tick 8384100 > > > > Just to make sure is it a bug or i did something wrong in running > > simulation? > > > > *2.* I use to run basic tutorial on gem5 like > > *configs/tutorial/two-level.py* by following instructions available > > online. But now same programs are not running on latest gem5 version and > > giving errors like mentioned below. > > > > *command line: build/X86/gem5.opt configs/tutorial/two-level.py* > > > > Traceback (most recent call last): > > File "<string>", line 1, in <module> > > File "/home/muzamil/GEM5/gem5/src/python/m5/main.py", line 400, in > main > > exec filecode in scope > > File "configs/tutorial/two-level.py", line 92, in <module> > > * system.cpu.interrupts.pio = system.membus.master* > > File "/home/muzamil/GEM5/gem5/src/python/m5/params.py", line 239, in > > __setattr__ > > > > *"Not allowed to set %s on '%s'" % (attr, type(self).__name__) > > AttributeError: Not allowed to set pio on 'SimObjectVector'* > > > > How to set "pio" to make it run. > > > > Thanks > > Muzamil > > > > IMPORTANT NOTICE: The contents of this email and any attachments are > > confidential and may also be privileged. If you are not the intended > > recipient, please notify the sender immediately and do not disclose the > > contents to any other person, use it for any purpose, or store or copy > the > > information in any medium. Thank you. > > _______________________________________________ > > gem5-users mailing list > > [email protected] > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > -- > > Jason > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/ > attachments/20170117/dea8b085/attachment-0001.html> > > ------------------------------ > > Message: 5 > Date: Tue, 17 Jan 2017 14:59:48 +0000 > From: Jason Lowe-Power <[email protected]> > To: gem5 users mailing list <[email protected]> > Subject: Re: [gem5-users] Multithreading in gem5, full system mode > Message-ID: > <CAFEhpUd-rtXQXMts+qQxBcWxG8jtZceJTFytAAXhh6xcD0W > [email protected]> > Content-Type: text/plain; charset="utf-8" > > Hi Jasmin, > > gem5 is an event-driven simulator. So, when there are multiple objects > (e.g., multiple CPU cores, or caches, or memory controllers, etc.) all of > these objects can execute in parallel in simulated time (or guest time to > use virtual machine nomenclature). The CPU models don't necessarily execute > one instruction at a time. Instead they are simulated at the clock-cycle > level. Each action which takes place at some clock-cycle boundary is > scheduled and then executed as an event in the event-driven simulation. > > gem5 is mostly single threaded. All of the CPUs in your simulated system, > and all of the other objects like caches, etc. are simulated in a single > host thread. There are a few places where this isn't true, but it's unusual > to run gem5 with parallel event queues. > > Hopefully this helps explain things. Let us know if you have more > questions. > > Cheers, > Jason > > On Tue, Jan 17, 2017 at 4:29 AM Jasmin Jahic <[email protected]> > wrote: > > > Hello, > > > > I have one question regarding multi threading in gem5, in full system > > mode. Since gem5 is seen as one process at host OS, how does gem5 > actually > > emulate multiple threads/processes? Let's say that we have 4 core CPU and > > several processes and threads. Are these run in parallel really (one > > instruction of this thread, then one instruction of another thread...?) > or > > there is some more complex mechanism? > > > > Is there perhaps a presentation or document which explains this? > > > > Best regards, > > Jasmin JAHIC > > _______________________________________________ > > gem5-users mailing list > > [email protected] > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > -- > > Jason > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/ > attachments/20170117/bb5eb312/attachment-0001.html> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > ------------------------------ > > End of gem5-users Digest, Vol 126, Issue 14 > ******************************************* >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
