[gem5-users] gem5 v20.1.0.1 Hotfix Release [Garnet Network Model]

2020-11-06 Thread Bobby Bruce via gem5-users
Dear all,

In the gem5 v20.1.0.0 release there was a bug in the Garnet Network Stats,
which adversely affected the overall behavior of the Garnet Network Model.
The bug, and related fix, are discussed here:
https://gem5-review.googlesource.com/c/public/gem5/+/36416. On November
6th, we applied this fix to the stable branch, marking the release of gem5
v20.1.0.1.

Those using the Garnet Network Model are strongly encouraged to pull this
largest release from the gem5 stable branch :
https://gem5.googlesource.com/public/gem5

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 2235,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net
___
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: gem5 GCN3 GPU model running issues

2020-11-06 Thread Matt Sinclair via gem5-users
Thanks Kyle!  Another good reason for us to get the GCN3 tests up and
running as part of kokoro soon :)

Matt

On Fri, Nov 6, 2020 at 6:35 PM Kyle Roarty  wrote:

> Hi all,
>
> Found the root cause.
> https://gem5-review.googlesource.com/c/public/gem5/+/34160 moved all the
> syscall tables to their own files, but didn't include  in
> those files, so those files couldn't find the SYS_getdents definition. I'll
> post a patch soon.
>
> Re python in the Dockerfile: Like Matt P said, 3.5 is the last python
> version available in Ubuntu 16.04. I'd bet the SConstruct file checks for
> python 3.6 as python 3.5 is end of life. It looks like Python 3.6 is
> available in Ubuntu 16.10, so we can try basing the Dockerfile off that
> instead if it still has our other requirements. The other alternative would
> be to install 3.6+ from another ppa.
>
> Kyle
> --
> *From:* yang...@umich.edu 
> *Sent:* Friday, November 6, 2020 6:26 PM
> *To:* Daniel Gerzhoy 
> *Cc:* Matt Sinclair ; Kyle Roarty <
> kroa...@wisc.edu>; Poremba, Matthew ; gem5 users
> mailing list 
> *Subject:* Re: [gem5-users] Re: gem5 GCN3 GPU model running issues
>
> Hi Daniel,
>
> I tried with your building command and at least it is working fine for me.
>
> Thanks!
> --Yichen
>
> On Fri, Nov 6, 2020 at 6:41 PM Yichen Yang  wrote:
>
> Hi all,
>
> I am using gcn3-gpu docker running on ubuntu16.4 host machine. And follow
> the gem5-resources/readme to build the application.
>
> Thanks!
> --Yichen
>
> On Fri, Nov 6, 2020 at 6:21 PM Poremba, Matthew 
> wrote:
>
> [AMD Public Use]
>
>
>
> Hi Matt,
>
>
>
>
>
> I also see the getdents error with square building gem5 with gcc 7.5.0.
>
>
>
> I would hope we wouldn’t have to define a variable in scons to get a
> syscall to work. I am not sure where is SYS_getdents / SYS_getdents64 are
> supposed to be defined, but it is not anywhere in gem5. Different compiler
> maybe? The change that broke this for me literally just moves files around
> so I have no ideas how that caused it to break.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Matt Sinclair 
> *Sent:* Friday, November 6, 2020 2:55 PM
> *To:* Daniel Gerzhoy 
> *Cc:* Kyle Roarty ; Poremba, Matthew <
> matthew.pore...@amd.com>; Yichen Yang ; gem5 users
> mailing list 
> *Subject:* Re: [gem5-users] Re: gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Ok, we’re using the same, but haven’t gotten the second error ...
> strange.  Are you using different apps?
>
>
>
> Matt
>
>
>
> On Fri, Nov 6, 2020 at 4:45 PM Daniel Gerzhoy 
> wrote:
>
> I'm using the gcn3 docker, so Ubuntu 16.04 I believe
>
>
>
> On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
> wrote:
>
> Hi Daniel & Yichen,
>
>
>
> What OS are you using?  We have not encountered either of these problems
> thus far ... something must be different about your setup and ours.
>
>
>
> Thanks,
>
> Matt
>
>
>
> On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
> gem5-users@gem5.org> wrote:
>
> For some reason that syscall is only built if you set a flag. Recompile
> the simulator like so:
>
>
>
> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>
>
>
> Cheers,
>
>
>
> Dan
>
>
>
> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
> gem5-users@gem5.org> wrote:
>
> [AMD Public Use]
>
>
>
> Looking into that syscall error now.
>
>
>
> I’m not quite sure yet how to fix the docker image since python 3.5 is the
> latest version available for the distro needed.  For now I disabled the
> check for 3.6 since it seems unnecessarily strict and doesn’t break
> anything related to this build.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang 
> *Sent:* Friday, November 6, 2020 1:30 PM
> *To:* Poremba, Matthew 
> *Cc:* gem5 users mailing list 
> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Thanks!
>
>
>
> I tried the develop branch. But running into new problems
>
> warn: ignoring syscall set_robust_list(...)
> warn: ignoring syscall rt_sigaction(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall rt_sigprocmask(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall mprotect(...)
> warn: ignoring syscall mprotect(...)
> fatal: syscall getdents (#78) unimplemented.
> Memory Usage: 1562768 KBytes
>
>
>
> And I think the dockerfile needs some update. The scons requires python3.6
> to compile gem5, to be specific, `python3-config` need python3.6, but the
> default version installed with the docker is 3.5.
>
>
>
> Best, Yichen
>
>
>
>
>
>
>
> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
> wrote:
>
> [AMD Public Use]
>
>
>
> Hi Yichen,
>
>
>
>
>
> Based on the changes I see you’ve made, it seems like you are using an
> older version of gem5.  These should all be fixed, including the error you
> are seeing, on the tip of develop.
>
>
>
> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Yichen Yang via gem5-users
Hi Daniel,

I tried with your building command and at least it is working fine for me.

Thanks!
--Yichen

On Fri, Nov 6, 2020 at 6:41 PM Yichen Yang  wrote:

> Hi all,
>
> I am using gcn3-gpu docker running on ubuntu16.4 host machine. And follow
> the gem5-resources/readme to build the application.
>
> Thanks!
> --Yichen
>
> On Fri, Nov 6, 2020 at 6:21 PM Poremba, Matthew 
> wrote:
>
>> [AMD Public Use]
>>
>>
>>
>> Hi Matt,
>>
>>
>>
>>
>>
>> I also see the getdents error with square building gem5 with gcc 7.5.0.
>>
>>
>>
>> I would hope we wouldn’t have to define a variable in scons to get a
>> syscall to work. I am not sure where is SYS_getdents / SYS_getdents64 are
>> supposed to be defined, but it is not anywhere in gem5. Different compiler
>> maybe? The change that broke this for me literally just moves files around
>> so I have no ideas how that caused it to break.
>>
>>
>>
>>
>>
>> -Matt
>>
>>
>>
>> *From:* Matt Sinclair 
>> *Sent:* Friday, November 6, 2020 2:55 PM
>> *To:* Daniel Gerzhoy 
>> *Cc:* Kyle Roarty ; Poremba, Matthew <
>> matthew.pore...@amd.com>; Yichen Yang ; gem5 users
>> mailing list 
>> *Subject:* Re: [gem5-users] Re: gem5 GCN3 GPU model running issues
>>
>>
>>
>> [CAUTION: External Email]
>>
>> Ok, we’re using the same, but haven’t gotten the second error ...
>> strange.  Are you using different apps?
>>
>>
>>
>> Matt
>>
>>
>>
>> On Fri, Nov 6, 2020 at 4:45 PM Daniel Gerzhoy 
>> wrote:
>>
>> I'm using the gcn3 docker, so Ubuntu 16.04 I believe
>>
>>
>>
>> On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
>> wrote:
>>
>> Hi Daniel & Yichen,
>>
>>
>>
>> What OS are you using?  We have not encountered either of these problems
>> thus far ... something must be different about your setup and ours.
>>
>>
>>
>> Thanks,
>>
>> Matt
>>
>>
>>
>> On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>> For some reason that syscall is only built if you set a flag. Recompile
>> the simulator like so:
>>
>>
>>
>> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
>> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>>
>>
>>
>> Cheers,
>>
>>
>>
>> Dan
>>
>>
>>
>> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>> [AMD Public Use]
>>
>>
>>
>> Looking into that syscall error now.
>>
>>
>>
>> I’m not quite sure yet how to fix the docker image since python 3.5 is
>> the latest version available for the distro needed.  For now I disabled the
>> check for 3.6 since it seems unnecessarily strict and doesn’t break
>> anything related to this build.
>>
>>
>>
>>
>>
>> -Matt
>>
>>
>>
>> *From:* Yichen Yang 
>> *Sent:* Friday, November 6, 2020 1:30 PM
>> *To:* Poremba, Matthew 
>> *Cc:* gem5 users mailing list 
>> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>>
>>
>>
>> [CAUTION: External Email]
>>
>> Thanks!
>>
>>
>>
>> I tried the develop branch. But running into new problems
>>
>> warn: ignoring syscall set_robust_list(...)
>> warn: ignoring syscall rt_sigaction(...)
>>   (further warnings will be suppressed)
>> warn: ignoring syscall rt_sigprocmask(...)
>>   (further warnings will be suppressed)
>> warn: ignoring syscall mprotect(...)
>> warn: ignoring syscall mprotect(...)
>> fatal: syscall getdents (#78) unimplemented.
>> Memory Usage: 1562768 KBytes
>>
>>
>>
>> And I think the dockerfile needs some update. The scons requires
>> python3.6 to compile gem5, to be specific, `python3-config` need python3.6,
>> but the default version installed with the docker is 3.5.
>>
>>
>>
>> Best, Yichen
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
>> wrote:
>>
>> [AMD Public Use]
>>
>>
>>
>> Hi Yichen,
>>
>>
>>
>>
>>
>> Based on the changes I see you’ve made, it seems like you are using an
>> older version of gem5.  These should all be fixed, including the error you
>> are seeing, on the tip of develop.
>>
>>
>>
>> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so
>> the most up to date version is on the develop branch until the next gem5
>> release.
>>
>>
>>
>>
>>
>> -Matt
>>
>>
>>
>> *From:* Yichen Yang via gem5-users 
>> *Sent:* Friday, November 6, 2020 11:34 AM
>> *To:* gem5-users@gem5.org
>> *Cc:* Yichen Yang 
>> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>>
>>
>>
>> [CAUTION: External Email]
>>
>> Hi,
>>
>>
>>
>> I was trying to run gem5 with its GCN3 GPU model following the
>> instructions on
>> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
>> 
>> .
>>
>>
>>
>> I fixed some bugs in the code 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Yichen Yang via gem5-users
Hi all,

I am using gcn3-gpu docker running on ubuntu16.4 host machine. And follow
the gem5-resources/readme to build the application.

Thanks!
--Yichen

On Fri, Nov 6, 2020 at 6:21 PM Poremba, Matthew 
wrote:

> [AMD Public Use]
>
>
>
> Hi Matt,
>
>
>
>
>
> I also see the getdents error with square building gem5 with gcc 7.5.0.
>
>
>
> I would hope we wouldn’t have to define a variable in scons to get a
> syscall to work. I am not sure where is SYS_getdents / SYS_getdents64 are
> supposed to be defined, but it is not anywhere in gem5. Different compiler
> maybe? The change that broke this for me literally just moves files around
> so I have no ideas how that caused it to break.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Matt Sinclair 
> *Sent:* Friday, November 6, 2020 2:55 PM
> *To:* Daniel Gerzhoy 
> *Cc:* Kyle Roarty ; Poremba, Matthew <
> matthew.pore...@amd.com>; Yichen Yang ; gem5 users
> mailing list 
> *Subject:* Re: [gem5-users] Re: gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Ok, we’re using the same, but haven’t gotten the second error ...
> strange.  Are you using different apps?
>
>
>
> Matt
>
>
>
> On Fri, Nov 6, 2020 at 4:45 PM Daniel Gerzhoy 
> wrote:
>
> I'm using the gcn3 docker, so Ubuntu 16.04 I believe
>
>
>
> On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
> wrote:
>
> Hi Daniel & Yichen,
>
>
>
> What OS are you using?  We have not encountered either of these problems
> thus far ... something must be different about your setup and ours.
>
>
>
> Thanks,
>
> Matt
>
>
>
> On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
> gem5-users@gem5.org> wrote:
>
> For some reason that syscall is only built if you set a flag. Recompile
> the simulator like so:
>
>
>
> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>
>
>
> Cheers,
>
>
>
> Dan
>
>
>
> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
> gem5-users@gem5.org> wrote:
>
> [AMD Public Use]
>
>
>
> Looking into that syscall error now.
>
>
>
> I’m not quite sure yet how to fix the docker image since python 3.5 is the
> latest version available for the distro needed.  For now I disabled the
> check for 3.6 since it seems unnecessarily strict and doesn’t break
> anything related to this build.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang 
> *Sent:* Friday, November 6, 2020 1:30 PM
> *To:* Poremba, Matthew 
> *Cc:* gem5 users mailing list 
> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Thanks!
>
>
>
> I tried the develop branch. But running into new problems
>
> warn: ignoring syscall set_robust_list(...)
> warn: ignoring syscall rt_sigaction(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall rt_sigprocmask(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall mprotect(...)
> warn: ignoring syscall mprotect(...)
> fatal: syscall getdents (#78) unimplemented.
> Memory Usage: 1562768 KBytes
>
>
>
> And I think the dockerfile needs some update. The scons requires python3.6
> to compile gem5, to be specific, `python3-config` need python3.6, but the
> default version installed with the docker is 3.5.
>
>
>
> Best, Yichen
>
>
>
>
>
>
>
> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
> wrote:
>
> [AMD Public Use]
>
>
>
> Hi Yichen,
>
>
>
>
>
> Based on the changes I see you’ve made, it seems like you are using an
> older version of gem5.  These should all be fixed, including the error you
> are seeing, on the tip of develop.
>
>
>
> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the
> most up to date version is on the develop branch until the next gem5
> release.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang via gem5-users 
> *Sent:* Friday, November 6, 2020 11:34 AM
> *To:* gem5-users@gem5.org
> *Cc:* Yichen Yang 
> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Hi,
>
>
>
> I was trying to run gem5 with its GCN3 GPU model following the
> instructions on
> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
> 
> .
>
>
>
> I fixed some bugs in the code but still cannot run the example. I attached
> commands and bugs I fixed below.
>
>
>
> The simulator launched and running into this problem:
>
> Program Started!
> info: running on device
> info: architecture on AMD GPU device is: 801
> info: allocate host mem (  7.63 MB)
> info: launch 'vector_square' kernel
> panic: panic condition availableTokens > maxTokens occurred: More tokens
> 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Poremba, Matthew via gem5-users
[AMD Public Use]

Hi Matt,


I also see the getdents error with square building gem5 with gcc 7.5.0.

I would hope we wouldn't have to define a variable in scons to get a syscall to 
work. I am not sure where is SYS_getdents / SYS_getdents64 are supposed to be 
defined, but it is not anywhere in gem5. Different compiler maybe? The change 
that broke this for me literally just moves files around so I have no ideas how 
that caused it to break.


-Matt

From: Matt Sinclair 
Sent: Friday, November 6, 2020 2:55 PM
To: Daniel Gerzhoy 
Cc: Kyle Roarty ; Poremba, Matthew ; 
Yichen Yang ; gem5 users mailing list 
Subject: Re: [gem5-users] Re: gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Ok, we're using the same, but haven't gotten the second error ... strange.  Are 
you using different apps?

Matt

On Fri, Nov 6, 2020 at 4:45 PM Daniel Gerzhoy 
mailto:daniel.gerz...@gmail.com>> wrote:
I'm using the gcn3 docker, so Ubuntu 16.04 I believe

On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
mailto:mattdsincl...@gmail.com>> wrote:
Hi Daniel & Yichen,

What OS are you using?  We have not encountered either of these problems thus 
far ... something must be different about your setup and ours.

Thanks,
Matt

On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
For some reason that syscall is only built if you set a flag. Recompile the 
simulator like so:

scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True 
CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"

Cheers,

Dan

On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users 
mailto:gem5-users@gem5.org>> wrote:

[AMD Public Use]

Looking into that syscall error now.

I'm not quite sure yet how to fix the docker image since python 3.5 is the 
latest version available for the distro needed.  For now I disabled the check 
for 3.6 since it seems unnecessarily strict and doesn't break anything related 
to this build.


-Matt

From: Yichen Yang mailto:yang...@umich.edu>>
Sent: Friday, November 6, 2020 1:30 PM
To: Poremba, Matthew mailto:matthew.pore...@amd.com>>
Cc: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Thanks!

I tried the develop branch. But running into new problems
warn: ignoring syscall set_robust_list(...)
warn: ignoring syscall rt_sigaction(...)
  (further warnings will be suppressed)
warn: ignoring syscall rt_sigprocmask(...)
  (further warnings will be suppressed)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
fatal: syscall getdents (#78) unimplemented.
Memory Usage: 1562768 KBytes

And I think the dockerfile needs some update. The scons requires python3.6 to 
compile gem5, to be specific, `python3-config` need python3.6, but the default 
version installed with the docker is 3.5.

Best, Yichen



On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
mailto:matthew.pore...@amd.com>> wrote:

[AMD Public Use]

Hi Yichen,


Based on the changes I see you've made, it seems like you are using an older 
version of gem5.  These should all be fixed, including the error you are 
seeing, on the tip of develop.

Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the most 
up to date version is on the develop branch until the next gem5 release.


-Matt

From: Yichen Yang via gem5-users 
mailto:gem5-users@gem5.org>>
Sent: Friday, November 6, 2020 11:34 AM
To: gem5-users@gem5.org
Cc: Yichen Yang mailto:yang...@umich.edu>>
Subject: [gem5-users] gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Hi,

I was trying to run gem5 with its GCN3 GPU model following the instructions on 
https://www.gem5.org/documentation/general_docs/gpu_models/GCN3.

I fixed some bugs in the code but still cannot run the example. I attached 
commands and bugs I fixed below.

The simulator launched and running into this problem:
Program Started!
info: running on device
info: architecture on AMD GPU device is: 801
info: allocate host mem (  7.63 MB)
info: launch 'vector_square' kernel
panic: panic condition availableTokens > maxTokens occurred: More tokens 
available than the maximum after recvTokens!
Memory Usage: 1737788 KBytes
Program aborted at tick 137231963000

Is there anything I did incorrectly?

Thanks!
Best, Yichen

To be specific, I use the following command:
## build docker
docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
## make gem5
docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc) 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Matt Sinclair via gem5-users
Ok, we’re using the same, but haven’t gotten the second error ... strange.
Are you using different apps?

Matt

On Fri, Nov 6, 2020 at 4:45 PM Daniel Gerzhoy 
wrote:

> I'm using the gcn3 docker, so Ubuntu 16.04 I believe
>
> On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
> wrote:
>
>> Hi Daniel & Yichen,
>>
>> What OS are you using?  We have not encountered either of these problems
>> thus far ... something must be different about your setup and ours.
>>
>> Thanks,
>> Matt
>>
>> On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> For some reason that syscall is only built if you set a flag. Recompile
>>> the simulator like so:
>>>
>>> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
>>> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>>>
>>> Cheers,
>>>
>>> Dan
>>>
>>> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
>>> gem5-users@gem5.org> wrote:
>>>
 [AMD Public Use]



 Looking into that syscall error now.



 I’m not quite sure yet how to fix the docker image since python 3.5 is
 the latest version available for the distro needed.  For now I disabled the
 check for 3.6 since it seems unnecessarily strict and doesn’t break
 anything related to this build.





 -Matt



 *From:* Yichen Yang 
 *Sent:* Friday, November 6, 2020 1:30 PM
 *To:* Poremba, Matthew 
 *Cc:* gem5 users mailing list 
 *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues



 [CAUTION: External Email]

 Thanks!



 I tried the develop branch. But running into new problems

 warn: ignoring syscall set_robust_list(...)
 warn: ignoring syscall rt_sigaction(...)
   (further warnings will be suppressed)
 warn: ignoring syscall rt_sigprocmask(...)
   (further warnings will be suppressed)
 warn: ignoring syscall mprotect(...)
 warn: ignoring syscall mprotect(...)
 fatal: syscall getdents (#78) unimplemented.
 Memory Usage: 1562768 KBytes



 And I think the dockerfile needs some update. The scons requires
 python3.6 to compile gem5, to be specific, `python3-config` need python3.6,
 but the default version installed with the docker is 3.5.



 Best, Yichen







 On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew <
 matthew.pore...@amd.com> wrote:

 [AMD Public Use]



 Hi Yichen,





 Based on the changes I see you’ve made, it seems like you are using an
 older version of gem5.  These should all be fixed, including the error you
 are seeing, on the tip of develop.



 Keep in mind GCN3 was not officially part of the gem5 20.1 release, so
 the most up to date version is on the develop branch until the next gem5
 release.





 -Matt



 *From:* Yichen Yang via gem5-users 
 *Sent:* Friday, November 6, 2020 11:34 AM
 *To:* gem5-users@gem5.org
 *Cc:* Yichen Yang 
 *Subject:* [gem5-users] gem5 GCN3 GPU model running issues



 [CAUTION: External Email]

 Hi,



 I was trying to run gem5 with its GCN3 GPU model following the
 instructions on
 https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
 
 .



 I fixed some bugs in the code but still cannot run the example. I
 attached commands and bugs I fixed below.



 The simulator launched and running into this problem:

 Program Started!
 info: running on device
 info: architecture on AMD GPU device is: 801
 info: allocate host mem (  7.63 MB)
 info: launch 'vector_square' kernel
 panic: panic condition availableTokens > maxTokens occurred: More
 tokens available than the maximum after recvTokens!
 Memory Usage: 1737788 KBytes
 Program aborted at tick 137231963000



 Is there anything I did incorrectly?



 Thanks!

 Best, Yichen



 To be specific, I use the following command:

 ## build docker
 docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
 ## make gem5
 docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ
 -j$(nproc) build/GCN3_X86/gem5.opt
 ## make application
 docker run --rm -v $PWD/gem5-resources:/gem5-resources -w
 /gem5-resources -u 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Daniel Gerzhoy via gem5-users
I'm using the gcn3 docker, so Ubuntu 16.04 I believe

On Fri, Nov 6, 2020 at 5:44 PM Matt Sinclair 
wrote:

> Hi Daniel & Yichen,
>
> What OS are you using?  We have not encountered either of these problems
> thus far ... something must be different about your setup and ours.
>
> Thanks,
> Matt
>
> On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> For some reason that syscall is only built if you set a flag. Recompile
>> the simulator like so:
>>
>> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
>> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>>
>> Cheers,
>>
>> Dan
>>
>> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> [AMD Public Use]
>>>
>>>
>>>
>>> Looking into that syscall error now.
>>>
>>>
>>>
>>> I’m not quite sure yet how to fix the docker image since python 3.5 is
>>> the latest version available for the distro needed.  For now I disabled the
>>> check for 3.6 since it seems unnecessarily strict and doesn’t break
>>> anything related to this build.
>>>
>>>
>>>
>>>
>>>
>>> -Matt
>>>
>>>
>>>
>>> *From:* Yichen Yang 
>>> *Sent:* Friday, November 6, 2020 1:30 PM
>>> *To:* Poremba, Matthew 
>>> *Cc:* gem5 users mailing list 
>>> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>>>
>>>
>>>
>>> [CAUTION: External Email]
>>>
>>> Thanks!
>>>
>>>
>>>
>>> I tried the develop branch. But running into new problems
>>>
>>> warn: ignoring syscall set_robust_list(...)
>>> warn: ignoring syscall rt_sigaction(...)
>>>   (further warnings will be suppressed)
>>> warn: ignoring syscall rt_sigprocmask(...)
>>>   (further warnings will be suppressed)
>>> warn: ignoring syscall mprotect(...)
>>> warn: ignoring syscall mprotect(...)
>>> fatal: syscall getdents (#78) unimplemented.
>>> Memory Usage: 1562768 KBytes
>>>
>>>
>>>
>>> And I think the dockerfile needs some update. The scons requires
>>> python3.6 to compile gem5, to be specific, `python3-config` need python3.6,
>>> but the default version installed with the docker is 3.5.
>>>
>>>
>>>
>>> Best, Yichen
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
>>> wrote:
>>>
>>> [AMD Public Use]
>>>
>>>
>>>
>>> Hi Yichen,
>>>
>>>
>>>
>>>
>>>
>>> Based on the changes I see you’ve made, it seems like you are using an
>>> older version of gem5.  These should all be fixed, including the error you
>>> are seeing, on the tip of develop.
>>>
>>>
>>>
>>> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so
>>> the most up to date version is on the develop branch until the next gem5
>>> release.
>>>
>>>
>>>
>>>
>>>
>>> -Matt
>>>
>>>
>>>
>>> *From:* Yichen Yang via gem5-users 
>>> *Sent:* Friday, November 6, 2020 11:34 AM
>>> *To:* gem5-users@gem5.org
>>> *Cc:* Yichen Yang 
>>> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>>>
>>>
>>>
>>> [CAUTION: External Email]
>>>
>>> Hi,
>>>
>>>
>>>
>>> I was trying to run gem5 with its GCN3 GPU model following the
>>> instructions on
>>> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
>>> 
>>> .
>>>
>>>
>>>
>>> I fixed some bugs in the code but still cannot run the example. I
>>> attached commands and bugs I fixed below.
>>>
>>>
>>>
>>> The simulator launched and running into this problem:
>>>
>>> Program Started!
>>> info: running on device
>>> info: architecture on AMD GPU device is: 801
>>> info: allocate host mem (  7.63 MB)
>>> info: launch 'vector_square' kernel
>>> panic: panic condition availableTokens > maxTokens occurred: More tokens
>>> available than the maximum after recvTokens!
>>> Memory Usage: 1737788 KBytes
>>> Program aborted at tick 137231963000
>>>
>>>
>>>
>>> Is there anything I did incorrectly?
>>>
>>>
>>>
>>> Thanks!
>>>
>>> Best, Yichen
>>>
>>>
>>>
>>> To be specific, I use the following command:
>>>
>>> ## build docker
>>> docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
>>> ## make gem5
>>> docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ
>>> -j$(nproc) build/GCN3_X86/gem5.opt
>>> ## make application
>>> docker run --rm -v $PWD/gem5-resources:/gem5-resources -w
>>> /gem5-resources -u $UID:$GID \
>>> gcr.io/gem5-test/gcn-gpu
>>> 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Matt Sinclair via gem5-users
Hi Daniel & Yichen,

What OS are you using?  We have not encountered either of these problems
thus far ... something must be different about your setup and ours.

Thanks,
Matt

On Fri, Nov 6, 2020 at 4:35 PM Daniel Gerzhoy via gem5-users <
gem5-users@gem5.org> wrote:

> For some reason that syscall is only built if you set a flag. Recompile
> the simulator like so:
>
> scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
> CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"
>
> Cheers,
>
> Dan
>
> On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> [AMD Public Use]
>>
>>
>>
>> Looking into that syscall error now.
>>
>>
>>
>> I’m not quite sure yet how to fix the docker image since python 3.5 is
>> the latest version available for the distro needed.  For now I disabled the
>> check for 3.6 since it seems unnecessarily strict and doesn’t break
>> anything related to this build.
>>
>>
>>
>>
>>
>> -Matt
>>
>>
>>
>> *From:* Yichen Yang 
>> *Sent:* Friday, November 6, 2020 1:30 PM
>> *To:* Poremba, Matthew 
>> *Cc:* gem5 users mailing list 
>> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>>
>>
>>
>> [CAUTION: External Email]
>>
>> Thanks!
>>
>>
>>
>> I tried the develop branch. But running into new problems
>>
>> warn: ignoring syscall set_robust_list(...)
>> warn: ignoring syscall rt_sigaction(...)
>>   (further warnings will be suppressed)
>> warn: ignoring syscall rt_sigprocmask(...)
>>   (further warnings will be suppressed)
>> warn: ignoring syscall mprotect(...)
>> warn: ignoring syscall mprotect(...)
>> fatal: syscall getdents (#78) unimplemented.
>> Memory Usage: 1562768 KBytes
>>
>>
>>
>> And I think the dockerfile needs some update. The scons requires
>> python3.6 to compile gem5, to be specific, `python3-config` need python3.6,
>> but the default version installed with the docker is 3.5.
>>
>>
>>
>> Best, Yichen
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
>> wrote:
>>
>> [AMD Public Use]
>>
>>
>>
>> Hi Yichen,
>>
>>
>>
>>
>>
>> Based on the changes I see you’ve made, it seems like you are using an
>> older version of gem5.  These should all be fixed, including the error you
>> are seeing, on the tip of develop.
>>
>>
>>
>> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so
>> the most up to date version is on the develop branch until the next gem5
>> release.
>>
>>
>>
>>
>>
>> -Matt
>>
>>
>>
>> *From:* Yichen Yang via gem5-users 
>> *Sent:* Friday, November 6, 2020 11:34 AM
>> *To:* gem5-users@gem5.org
>> *Cc:* Yichen Yang 
>> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>>
>>
>>
>> [CAUTION: External Email]
>>
>> Hi,
>>
>>
>>
>> I was trying to run gem5 with its GCN3 GPU model following the
>> instructions on
>> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
>> 
>> .
>>
>>
>>
>> I fixed some bugs in the code but still cannot run the example. I
>> attached commands and bugs I fixed below.
>>
>>
>>
>> The simulator launched and running into this problem:
>>
>> Program Started!
>> info: running on device
>> info: architecture on AMD GPU device is: 801
>> info: allocate host mem (  7.63 MB)
>> info: launch 'vector_square' kernel
>> panic: panic condition availableTokens > maxTokens occurred: More tokens
>> available than the maximum after recvTokens!
>> Memory Usage: 1737788 KBytes
>> Program aborted at tick 137231963000
>>
>>
>>
>> Is there anything I did incorrectly?
>>
>>
>>
>> Thanks!
>>
>> Best, Yichen
>>
>>
>>
>> To be specific, I use the following command:
>>
>> ## build docker
>> docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
>> ## make gem5
>> docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ
>> -j$(nproc) build/GCN3_X86/gem5.opt
>> ## make application
>> docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
>> -u $UID:$GID \
>> gcr.io/gem5-test/gcn-gpu
>> 
>>  make
>> gfx8-apu -C /gem5-resources/src/square
>> ## run gem5
>> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources
>> \
>> -w /gem5 gcn3-test \
>> build/GCN3_X86/gem5.opt 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Daniel Gerzhoy via gem5-users
For some reason that syscall is only built if you set a flag. Recompile the
simulator like so:

scons -j$(nproc) build/GCN3_X86/gem5.opt --ignore-style SLICC_HTML=True
CCFLAGS_EXTRA="-DSYS_getdents -DSYS_getdents64"

Cheers,

Dan

On Fri, Nov 6, 2020 at 5:25 PM Poremba, Matthew via gem5-users <
gem5-users@gem5.org> wrote:

> [AMD Public Use]
>
>
>
> Looking into that syscall error now.
>
>
>
> I’m not quite sure yet how to fix the docker image since python 3.5 is the
> latest version available for the distro needed.  For now I disabled the
> check for 3.6 since it seems unnecessarily strict and doesn’t break
> anything related to this build.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang 
> *Sent:* Friday, November 6, 2020 1:30 PM
> *To:* Poremba, Matthew 
> *Cc:* gem5 users mailing list 
> *Subject:* Re: [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Thanks!
>
>
>
> I tried the develop branch. But running into new problems
>
> warn: ignoring syscall set_robust_list(...)
> warn: ignoring syscall rt_sigaction(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall rt_sigprocmask(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall mprotect(...)
> warn: ignoring syscall mprotect(...)
> fatal: syscall getdents (#78) unimplemented.
> Memory Usage: 1562768 KBytes
>
>
>
> And I think the dockerfile needs some update. The scons requires python3.6
> to compile gem5, to be specific, `python3-config` need python3.6, but the
> default version installed with the docker is 3.5.
>
>
>
> Best, Yichen
>
>
>
>
>
>
>
> On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
> wrote:
>
> [AMD Public Use]
>
>
>
> Hi Yichen,
>
>
>
>
>
> Based on the changes I see you’ve made, it seems like you are using an
> older version of gem5.  These should all be fixed, including the error you
> are seeing, on the tip of develop.
>
>
>
> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the
> most up to date version is on the develop branch until the next gem5
> release.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang via gem5-users 
> *Sent:* Friday, November 6, 2020 11:34 AM
> *To:* gem5-users@gem5.org
> *Cc:* Yichen Yang 
> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Hi,
>
>
>
> I was trying to run gem5 with its GCN3 GPU model following the
> instructions on
> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
> 
> .
>
>
>
> I fixed some bugs in the code but still cannot run the example. I attached
> commands and bugs I fixed below.
>
>
>
> The simulator launched and running into this problem:
>
> Program Started!
> info: running on device
> info: architecture on AMD GPU device is: 801
> info: allocate host mem (  7.63 MB)
> info: launch 'vector_square' kernel
> panic: panic condition availableTokens > maxTokens occurred: More tokens
> available than the maximum after recvTokens!
> Memory Usage: 1737788 KBytes
> Program aborted at tick 137231963000
>
>
>
> Is there anything I did incorrectly?
>
>
>
> Thanks!
>
> Best, Yichen
>
>
>
> To be specific, I use the following command:
>
> ## build docker
> docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
> ## make gem5
> docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc)
> build/GCN3_X86/gem5.opt
> ## make application
> docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
> -u $UID:$GID \
> gcr.io/gem5-test/gcn-gpu
> 
>  make
> gfx8-apu -C /gem5-resources/src/square
> ## run gem5
> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
> -w /gem5 gcn3-test \
> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
> --benchmark-root=/gem5-resources/src/square/bin \
> -c square.o
>
>
>
> And here's the bugs I fixed:
>
> diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
> index 03418c3..a285a14 100644
> --- a/configs/example/apu_se.py
> +++ b/configs/example/apu_se.py
> @@ -174,7 +174,7 @@ parser.add_option("--numLdsBanks", type="int",
> default=32,
>help="number of 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Poremba, Matthew via gem5-users
[AMD Public Use]

Looking into that syscall error now.

I'm not quite sure yet how to fix the docker image since python 3.5 is the 
latest version available for the distro needed.  For now I disabled the check 
for 3.6 since it seems unnecessarily strict and doesn't break anything related 
to this build.


-Matt

From: Yichen Yang 
Sent: Friday, November 6, 2020 1:30 PM
To: Poremba, Matthew 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Thanks!

I tried the develop branch. But running into new problems
warn: ignoring syscall set_robust_list(...)
warn: ignoring syscall rt_sigaction(...)
  (further warnings will be suppressed)
warn: ignoring syscall rt_sigprocmask(...)
  (further warnings will be suppressed)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall mprotect(...)
fatal: syscall getdents (#78) unimplemented.
Memory Usage: 1562768 KBytes

And I think the dockerfile needs some update. The scons requires python3.6 to 
compile gem5, to be specific, `python3-config` need python3.6, but the default 
version installed with the docker is 3.5.

Best, Yichen



On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
mailto:matthew.pore...@amd.com>> wrote:

[AMD Public Use]

Hi Yichen,


Based on the changes I see you've made, it seems like you are using an older 
version of gem5.  These should all be fixed, including the error you are 
seeing, on the tip of develop.

Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the most 
up to date version is on the develop branch until the next gem5 release.


-Matt

From: Yichen Yang via gem5-users 
mailto:gem5-users@gem5.org>>
Sent: Friday, November 6, 2020 11:34 AM
To: gem5-users@gem5.org
Cc: Yichen Yang mailto:yang...@umich.edu>>
Subject: [gem5-users] gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Hi,

I was trying to run gem5 with its GCN3 GPU model following the instructions on 
https://www.gem5.org/documentation/general_docs/gpu_models/GCN3.

I fixed some bugs in the code but still cannot run the example. I attached 
commands and bugs I fixed below.

The simulator launched and running into this problem:
Program Started!
info: running on device
info: architecture on AMD GPU device is: 801
info: allocate host mem (  7.63 MB)
info: launch 'vector_square' kernel
panic: panic condition availableTokens > maxTokens occurred: More tokens 
available than the maximum after recvTokens!
Memory Usage: 1737788 KBytes
Program aborted at tick 137231963000

Is there anything I did incorrectly?

Thanks!
Best, Yichen

To be specific, I use the following command:
## build docker
docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
## make gem5
docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc) 
build/GCN3_X86/gem5.opt
## make application
docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources -u 
$UID:$GID \

gcr.io/gem5-test/gcn-gpu
 make gfx8-apu -C /gem5-resources/src/square
## run gem5
docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
-w /gem5 gcn3-test \
build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
--benchmark-root=/gem5-resources/src/square/bin \
-c square.o

And here's the bugs I fixed:
diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
index 03418c3..a285a14 100644
--- a/configs/example/apu_se.py
+++ b/configs/example/apu_se.py
@@ -174,7 +174,7 @@ parser.add_option("--numLdsBanks", type="int", default=32,
   help="number of physical banks per LDS module")
 parser.add_option("--ldsBankConflictPenalty", type="int", default=1,
   help="number of cycles per LDS bank conflict")
-parser.add_options("--lds-size", type="int", default=65536,
+parser.add_option("--lds-size", type="int", default=65536,
help="Size of the LDS in bytes")
 parser.add_option('--fast-forward-pseudo-op', action='store_true',
   help = 'fast forward using kvm until the m5_switchcpu'
diff --git a/src/gpu-compute/compute_unit.hh 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Yichen Yang via gem5-users
Thanks!

I tried the develop branch. But running into new problems

> warn: ignoring syscall set_robust_list(...)
> warn: ignoring syscall rt_sigaction(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall rt_sigprocmask(...)
>   (further warnings will be suppressed)
> warn: ignoring syscall mprotect(...)
> warn: ignoring syscall mprotect(...)
> fatal: syscall getdents (#78) unimplemented.
> Memory Usage: 1562768 KBytes


And I think the dockerfile needs some update. The scons requires python3.6
to compile gem5, to be specific, `python3-config` need python3.6, but the
default version installed with the docker is 3.5.

Best, Yichen



On Fri, Nov 6, 2020 at 2:58 PM Poremba, Matthew 
wrote:

> [AMD Public Use]
>
>
>
> Hi Yichen,
>
>
>
>
>
> Based on the changes I see you’ve made, it seems like you are using an
> older version of gem5.  These should all be fixed, including the error you
> are seeing, on the tip of develop.
>
>
>
> Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the
> most up to date version is on the develop branch until the next gem5
> release.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Yichen Yang via gem5-users 
> *Sent:* Friday, November 6, 2020 11:34 AM
> *To:* gem5-users@gem5.org
> *Cc:* Yichen Yang 
> *Subject:* [gem5-users] gem5 GCN3 GPU model running issues
>
>
>
> [CAUTION: External Email]
>
> Hi,
>
>
>
> I was trying to run gem5 with its GCN3 GPU model following the
> instructions on
> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
> 
> .
>
>
>
> I fixed some bugs in the code but still cannot run the example. I attached
> commands and bugs I fixed below.
>
>
>
> The simulator launched and running into this problem:
>
> Program Started!
> info: running on device
> info: architecture on AMD GPU device is: 801
> info: allocate host mem (  7.63 MB)
> info: launch 'vector_square' kernel
> panic: panic condition availableTokens > maxTokens occurred: More tokens
> available than the maximum after recvTokens!
> Memory Usage: 1737788 KBytes
> Program aborted at tick 137231963000
>
>
>
> Is there anything I did incorrectly?
>
>
>
> Thanks!
>
> Best, Yichen
>
>
>
> To be specific, I use the following command:
>
> ## build docker
> docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
> ## make gem5
> docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc)
> build/GCN3_X86/gem5.opt
> ## make application
> docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
> -u $UID:$GID \
> gcr.io/gem5-test/gcn-gpu
> 
>  make
> gfx8-apu -C /gem5-resources/src/square
> ## run gem5
> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
> -w /gem5 gcn3-test \
> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
> --benchmark-root=/gem5-resources/src/square/bin \
> -c square.o
>
>
>
> And here's the bugs I fixed:
>
> diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
> index 03418c3..a285a14 100644
> --- a/configs/example/apu_se.py
> +++ b/configs/example/apu_se.py
> @@ -174,7 +174,7 @@ parser.add_option("--numLdsBanks", type="int",
> default=32,
>help="number of physical banks per LDS module")
>  parser.add_option("--ldsBankConflictPenalty", type="int", default=1,
>help="number of cycles per LDS bank conflict")
> -parser.add_options("--lds-size", type="int", default=65536,
> +parser.add_option("--lds-size", type="int", default=65536,
> help="Size of the LDS in bytes")
>  parser.add_option('--fast-forward-pseudo-op', action='store_true',
>help = 'fast forward using kvm until the m5_switchcpu'
> diff --git a/src/gpu-compute/compute_unit.hh
> b/src/gpu-compute/compute_unit.hh
> index fe2091d..2df4807 100644
> --- a/src/gpu-compute/compute_unit.hh
> +++ b/src/gpu-compute/compute_unit.hh
> @@ -1015,6 +1015,8 @@ class ComputeUnit : public ClockedObject
>  return sqcTLBPort;
>  } else if (if_name == "ldsPort") {
>  return ldsPort;
> +} else if (if_name == "gmTokenPort") {
> +return 

[gem5-users] Re: gem5 GCN3 GPU model running issues

2020-11-06 Thread Poremba, Matthew via gem5-users
[AMD Public Use]

Hi Yichen,


Based on the changes I see you've made, it seems like you are using an older 
version of gem5.  These should all be fixed, including the error you are 
seeing, on the tip of develop.

Keep in mind GCN3 was not officially part of the gem5 20.1 release, so the most 
up to date version is on the develop branch until the next gem5 release.


-Matt

From: Yichen Yang via gem5-users 
Sent: Friday, November 6, 2020 11:34 AM
To: gem5-users@gem5.org
Cc: Yichen Yang 
Subject: [gem5-users] gem5 GCN3 GPU model running issues

[CAUTION: External Email]
Hi,

I was trying to run gem5 with its GCN3 GPU model following the instructions on 
https://www.gem5.org/documentation/general_docs/gpu_models/GCN3.

I fixed some bugs in the code but still cannot run the example. I attached 
commands and bugs I fixed below.

The simulator launched and running into this problem:
Program Started!
info: running on device
info: architecture on AMD GPU device is: 801
info: allocate host mem (  7.63 MB)
info: launch 'vector_square' kernel
panic: panic condition availableTokens > maxTokens occurred: More tokens 
available than the maximum after recvTokens!
Memory Usage: 1737788 KBytes
Program aborted at tick 137231963000

Is there anything I did incorrectly?

Thanks!
Best, Yichen

To be specific, I use the following command:
## build docker
docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
## make gem5
docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc) 
build/GCN3_X86/gem5.opt
## make application
docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources -u 
$UID:$GID \

gcr.io/gem5-test/gcn-gpu
 make gfx8-apu -C /gem5-resources/src/square
## run gem5
docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
-w /gem5 gcn3-test \
build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
--benchmark-root=/gem5-resources/src/square/bin \
-c square.o

And here's the bugs I fixed:
diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
index 03418c3..a285a14 100644
--- a/configs/example/apu_se.py
+++ b/configs/example/apu_se.py
@@ -174,7 +174,7 @@ parser.add_option("--numLdsBanks", type="int", default=32,
   help="number of physical banks per LDS module")
 parser.add_option("--ldsBankConflictPenalty", type="int", default=1,
   help="number of cycles per LDS bank conflict")
-parser.add_options("--lds-size", type="int", default=65536,
+parser.add_option("--lds-size", type="int", default=65536,
help="Size of the LDS in bytes")
 parser.add_option('--fast-forward-pseudo-op', action='store_true',
   help = 'fast forward using kvm until the m5_switchcpu'
diff --git a/src/gpu-compute/compute_unit.hh b/src/gpu-compute/compute_unit.hh
index fe2091d..2df4807 100644
--- a/src/gpu-compute/compute_unit.hh
+++ b/src/gpu-compute/compute_unit.hh
@@ -1015,6 +1015,8 @@ class ComputeUnit : public ClockedObject
 return sqcTLBPort;
 } else if (if_name == "ldsPort") {
 return ldsPort;
+} else if (if_name == "gmTokenPort") {
+return gmTokenPort;
 } else {
 return ClockedObject::getPort(if_name, idx);
 }

--

Yichen Yang

University of Michigan

Ph.D. Student in Computer Science and Engineering

Address: 2260 Hayward St, Ann Arbor, MI 48109, U.S.A.

E-mail: yang...@umich.edu
___
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] How to use checkpoint for a specific code in the Gem5 full system mode.

2020-11-06 Thread Hasan, S M Shamimul via gem5-users
Hello.

I am running the Gem5 in full system mode. I am using the following command.

===
build/X86/gem5.opt --debug-flags=DRAM --debug-file=trace.out 
configs/example/fs.py --disk-image="/home/cosmogan-image/cosmogan" 
--kernel="/home/gem5/pkr_cp/other/vmlinux-4.9.238" 
--script="/home/gem5/pkr_cp/other/tmp.sh"


My "tmp.sh" file contains the following code.

#!/bin/sh
/sbin/m5 checkpoint
cd /cosmoGAN/networks
python run_dcgan.py
/sbin/m5 exit


The problem is the "trace.out" file that I got contains lots of memory traces 
that I do not need (e.g., system boot related memory trace). I need memory 
traces for only the following code "python run_dcgan.py." How can I get it? 
Please let me know. Thanks a lot in advance.

Sincerely,
S.M.Shamimul Hasan



___
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] gem5 GCN3 GPU model running issues

2020-11-06 Thread Yichen Yang via gem5-users
Hi,

I was trying to run gem5 with its GCN3 GPU model following the instructions
on https://www.gem5.org/documentation/general_docs/gpu_models/GCN3.

I fixed some bugs in the code but still cannot run the example. I attached
commands and bugs I fixed below.

The simulator launched and running into this problem:

> Program Started!
> info: running on device
> info: architecture on AMD GPU device is: 801
> info: allocate host mem (  7.63 MB)
> info: launch 'vector_square' kernel
> panic: panic condition availableTokens > maxTokens occurred: More tokens
> available than the maximum after recvTokens!
> Memory Usage: 1737788 KBytes
> Program aborted at tick 137231963000


Is there anything I did incorrectly?

Thanks!
Best, Yichen

To be specific, I use the following command:

> ## build docker
> docker build -t gcn3-test gem5/util/dockerfiles/gcn-gpu
> ## make gem5
> docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn3-test scons -sQ -j$(nproc)
> build/GCN3_X86/gem5.opt
> ## make application
> docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
> -u $UID:$GID \
> gcr.io/gem5-test/gcn-gpu make gfx8-apu -C
> /gem5-resources/src/square
> ## run gem5
> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
> -w /gem5 gcn3-test \
> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
> --benchmark-root=/gem5-resources/src/square/bin \
> -c square.o


And here's the bugs I fixed:

> diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
> index 03418c3..a285a14 100644
> --- a/configs/example/apu_se.py
> +++ b/configs/example/apu_se.py
> @@ -174,7 +174,7 @@ parser.add_option("--numLdsBanks", type="int",
> default=32,
>help="number of physical banks per LDS module")
>  parser.add_option("--ldsBankConflictPenalty", type="int", default=1,
>help="number of cycles per LDS bank conflict")
> -parser.add_options("--lds-size", type="int", default=65536,
> +parser.add_option("--lds-size", type="int", default=65536,
> help="Size of the LDS in bytes")
>  parser.add_option('--fast-forward-pseudo-op', action='store_true',
>help = 'fast forward using kvm until the m5_switchcpu'
> diff --git a/src/gpu-compute/compute_unit.hh
> b/src/gpu-compute/compute_unit.hh
> index fe2091d..2df4807 100644
> --- a/src/gpu-compute/compute_unit.hh
> +++ b/src/gpu-compute/compute_unit.hh
> @@ -1015,6 +1015,8 @@ class ComputeUnit : public ClockedObject
>  return sqcTLBPort;
>  } else if (if_name == "ldsPort") {
>  return ldsPort;
> +} else if (if_name == "gmTokenPort") {
> +return gmTokenPort;
>  } else {
>  return ClockedObject::getPort(if_name, idx);
>  }


-- 

*Yichen Yang*

University of Michigan

Ph.D. Student in Computer Science and Engineering

Address: 2260 Hayward St, Ann Arbor, MI 48109, U.S.A.

E-mail: yang...@umich.edu
___
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: Setting up cluster for gem5

2020-11-06 Thread Shehab Elsayed via gem5-users
Thank you so much for your reply, Daniel! It is really helpful.


On Fri, Nov 6, 2020 at 10:21 AM Daniel Gerzhoy 
wrote:

> Hey Shehab,
>
> I've been working with gem5 on my group's research cluster for a while
> now.
> 1) Gem5 isn't very memory hungry in my experience, sometimes long
> simulations (I'm talking 3 weeks+) will  start bloating to GB of RAM but
> its usually not paging so it doesn't slow things down (depends on the
> program you are running)
> I exclusively use Syscall Emulation mode, so that may not apply in Full
> System.
>
> *It is however single-threaded. So if your entire group is running many
> experiments at the same time make sure you have a ton of cores.*
>
> 2) As for job management, I created my own system for
> configuring/running/parsing etc.that I've built with python.
>
> gem5 as of recently has been shipped with dockerfiles. I use the gcn3
> dockerfile for instance. I'd recommend using them.
> Again I use a custom solution here, but I'm pretty sure container job
> management is a solved problem. I think one of them is "kubernets" (see
> https://kubernetes.io/)
> I don't have experience with anything like that, but I'm sure that would
> be useful.
>
> Also, if you plan on editing gem5 and your sourcecode is going to be
> located on the cluster, I'd recommend using code-server (
> https://github.com/cdr/code-server)
> It broadcasts an instance of vscode to a web page that you can access from
> anywhere. I used to use gvim and bash scripts and it was hell. Code server
> was a life-saver.
>
> If you (or anyone else) already have a solution for editing code on the
> cluster I would be interested in what it is.
>
> Good luck!
>
> Dan Gerzhoy
> PhD Candidate, Computer Engineering
> University of Maryland College Park
>
> On Fri, Nov 6, 2020 at 8:38 AM Shehab Elsayed via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Hello All,
>>
>> My group is in the process of upgrading our cluster and since many of us
>> are using gem5 I was wondering if anyone has experience or recommendation
>> they would like to share about the process for a smooth gem5 operation.
>> Mainly I am concerned about 2 issues:
>>
>> 1) Required hard disk and memory on the nodes for a smooth gem5
>> operation.
>> 2) OS and job management systems or any software related recommendations.
>>
>> Thank you very much in advance.
>>
>> Best Regards,
>> Shehab
>> ___
>> 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: Setting up cluster for gem5

2020-11-06 Thread Daniel Gerzhoy via gem5-users
Hey Shehab,

I've been working with gem5 on my group's research cluster for a while now.
1) Gem5 isn't very memory hungry in my experience, sometimes long
simulations (I'm talking 3 weeks+) will  start bloating to GB of RAM but
its usually not paging so it doesn't slow things down (depends on the
program you are running)
I exclusively use Syscall Emulation mode, so that may not apply in Full
System.

*It is however single-threaded. So if your entire group is running many
experiments at the same time make sure you have a ton of cores.*

2) As for job management, I created my own system for
configuring/running/parsing etc.that I've built with python.

gem5 as of recently has been shipped with dockerfiles. I use the gcn3
dockerfile for instance. I'd recommend using them.
Again I use a custom solution here, but I'm pretty sure container job
management is a solved problem. I think one of them is "kubernets" (see
https://kubernetes.io/)
I don't have experience with anything like that, but I'm sure that would be
useful.

Also, if you plan on editing gem5 and your sourcecode is going to be
located on the cluster, I'd recommend using code-server (
https://github.com/cdr/code-server)
It broadcasts an instance of vscode to a web page that you can access from
anywhere. I used to use gvim and bash scripts and it was hell. Code server
was a life-saver.

If you (or anyone else) already have a solution for editing code on the
cluster I would be interested in what it is.

Good luck!

Dan Gerzhoy
PhD Candidate, Computer Engineering
University of Maryland College Park

On Fri, Nov 6, 2020 at 8:38 AM Shehab Elsayed via gem5-users <
gem5-users@gem5.org> wrote:

> Hello All,
>
> My group is in the process of upgrading our cluster and since many of us
> are using gem5 I was wondering if anyone has experience or recommendation
> they would like to share about the process for a smooth gem5 operation.
> Mainly I am concerned about 2 issues:
>
> 1) Required hard disk and memory on the nodes for a smooth gem5 operation.
> 2) OS and job management systems or any software related recommendations.
>
> Thank you very much in advance.
>
> Best Regards,
> Shehab
> ___
> 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: Question regarding DTS under FS mode

2020-11-06 Thread Giacomo Travaglini via gem5-users
Hi Huayi,

I suggest you to have a look at the following documentation:

https://elixir.free-electrons.com/linux/latest/source/Documentation/devicetree/bindings/cpu/cpu-topology.txt

This should be a good starter as it covers the SMT case 

Kind Regards

Giacomo

From: Huayi Cai via gem5-users 
Sent: 06 November 2020 11:57
To: gem5-users@gem5.org
Cc: Huayi Cai 
Subject: [gem5-users] Question regarding DTS under FS mode

Hello!
I sent an email few days ago to question how to perform SMT functions on gem5, 
the answer back to me the DTS does not mean to support SMT at the moment. I’m 
new to Linux kernel development and my current goal is perform DTS on gem5’s 
CPU so that can function as SMT. In this way, I can debug and adjust gem5 under 
fs mode. Anyway, here is my question that how should I do to modify DTS 
document to achieve my goal? Or is there any information or data that could 
help me with it? This question is very important for me at the moment, I hope 
that you could get back to me as soon as possible, thank you and have a 
wonderful day!
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 -- 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] Setting up cluster for gem5

2020-11-06 Thread Shehab Elsayed via gem5-users
Hello All,

My group is in the process of upgrading our cluster and since many of us
are using gem5 I was wondering if anyone has experience or recommendation
they would like to share about the process for a smooth gem5 operation.
Mainly I am concerned about 2 issues:

1) Required hard disk and memory on the nodes for a smooth gem5 operation.
2) OS and job management systems or any software related recommendations.

Thank you very much in advance.

Best Regards,
Shehab
___
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] Question regarding DTS under FS mode

2020-11-06 Thread Huayi Cai via gem5-users
Hello!
I sent an email few days ago to question how to perform SMT functions on
gem5, the answer back to me the DTS does not mean to support SMT at the
moment. I’m new to Linux kernel development and my current goal is perform
DTS on gem5’s CPU so that can function as SMT. In this way, I can debug and
adjust gem5 under fs mode. Anyway, here is my question that how should I do
to modify DTS document to achieve my goal? Or is there any information or
data that could help me with it? This question is very important for me at
the moment, I hope that you could get back to me as soon as possible, thank
you and have a wonderful day!
___
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