[gem5-users] Re: Problem compiling gem5 with Ubuntu 20.04

2020-05-27 Thread Jason Lowe-Power via gem5-users
Hi Sam,

First, if you use "python2 `which scons`" it should work. Or "python2
/usr/bin/scons".

Second, we're hoping to release gem5-20 today or tomorrow. That said, we've
been saying "today or tomorrow" for almost two weeks... I think we mean it
this time!

Cheers,
Jason

On Wed, May 27, 2020 at 10:52 AM Samon Shivastar 
wrote:

> Hi Jason,
>
> Thanks for your reply. I use the following command and still got the same
> error:
> *python2 scons build/X86/gem5.opt -j6*
> python2: can't open file 'scons': [Errno 2] No such file or directory
>
> I was wondering if "a temporary issue with python3 support" has been
> resolved or it is still a working progress.
>
> Thanks
> Sam
>
> On Mon, May 18, 2020 at 3:07 PM Jason Lowe-Power 
> wrote:
>
>> Hi Sam,
>>
>> This is a temporary issue with python3 support. Once gem5-20 is released
>> (hopefully today or tomorrow), this issue should be resolved. In the
>> meantime, you can try to downgrade to python 2 and run `python2 scons`
>> or use an ubuntu 18.04 docker image (see
>> http://www.gem5.org/documentation/general_docs/building#docker for
>> details.).
>>
>> Cheers,
>> Jason
>>
>> On Mon, May 18, 2020 at 1:03 PM Samon Shivastar via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Dear All,
>>>
>>> I got a problem compiling gem5 latest repo on Ubuntu 20.04.
>>>
>>> It gives following error:
>>>
>>> scons build/X86/gem5.opt -j6
>>> scons: Reading SConscript files ...
>>> Warning: Failed to find git repo directory: a bytes-like object is
>>> required, not 'str'
>>> TypeError: argument should be integer or bytes-like object, not 'str':
>>>   File "/home/samsi/gem5/SConstruct", line 355:
>>> main['GCC'] = CXX_version and CXX_version.find('g++') >= 0
>>>
>>> Any ideas how to fix this error?
>>>
>>> Thanks in advance.
>>>
>>> Sam
>>> ___
>>> 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
>>
>>
___
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

[gem5-users] Re: Stat dump after each N instructions - CPU and/or AMD GPU

2020-05-27 Thread Poremba, Matthew via gem5-users
[AMD Official Use Only - Internal Distribution Only]

You could probably use the simpoint_start_insts vector param in CPU to have 
simulation exit to your python script and dump/reset stats there. For example:

cpu.simpoint_start_insts = [x*N for x in range(1000)]

where N is the instruction sample period. You'd have to know the approximate 
number of total instructions to figure out what to replace 1000 with though.


-Matt

From: Matt Sinclair via gem5-users 
Sent: Tuesday, May 26, 2020 7:39 PM
To: Rajeev Pal 
Cc: gem5 users mailing list ; Matt Sinclair 

Subject: [gem5-users] Re: Stat dump after each N instructions - CPU and/or AMD 
GPU

[CAUTION: External Email]
Thanks, this is helpful Rajeev.  I am not an expert at this part of the 
simulator, but I believe the m5ops is indeed what you are looking for.  After 
looking through the m5ops again, I don't think gem5 currently has exactly the 
feature you are looking for -- m5_dump_reset_stats is the closest, but it 
resets based on time, and you want instructions (as you and Muhammet discussed 
above).  So, my guess is that you should look at how m5_dump_reset_stats is 
implemented (start with include/gem5/m5ops.h), and create a new version of it 
that dumps/resets based on instructions instead.

Matt

On Tue, May 26, 2020 at 4:40 PM Rajeev Pal 
mailto:rjvpal0...@gmail.com>> wrote:
schedStatEvent() would be helpful in case of tick based stat dumping.
But I need instruction count based stat dumping.

On Tue, May 26, 2020 at 5:28 PM Muhammet Abdullah Soytürk 
mailto:muhammetabdullahsoyt...@gmail.com>> 
wrote:
I don't know how legal is this and whether it has side effects but you might 
try 
schedStatEvent
 to schedule the dumps.

Muhammet

Matt Sinclair via gem5-users mailto:gem5-users@gem5.org>>, 
27 May 2020 Çar, 00:13 tarihinde şunu yazdı:
I'm not sure if this is your ultimate problem, but if it only works on the CPU 
for the first N instructions, is N simply representing the point where you need 
a 64-bit counter instead of a 32-bit counter?

Unfortunately I don't know the answer to your other questions, sorry.  Perhaps 
you are thinking of the m5ops, which people often use for things like resetting 
stats: 
https://www.gem5.org/documentation/general_docs/m5ops/?

Matt

On Tue, May 26, 2020 at 2:12 PM Rajeev Pal via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi All,

Is it possible to dump and reset statistics after each N instructions for CPU 
and/or AMD GPU.
I see that there is a max_insts_any_thread var for cpus. I was able to use it 
to stop simulation, dump and reset stats (from apu_se.py), but it only works 
for the first N instructions.

(1) Is there any existing mechanism which I can leverage ?
 There is a comInstEventQueue which I think is used to stop the simulation 
after first N instructions. Can I somehow use this ?

(2) If not, then where and what sort of modifications will I need ? I need to 
do this for both CPU and AMD GPU.

Thank you,
Rajeev Pal
___
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
___
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
___
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