[gem5-users] Re: GCN3 docker file missing

2020-09-01 Thread Matt Sinclair via gem5-users
Hi Samaksh,

The warnings you mentioned can be ignored.  They are highlighting that the
sched_yield syscall is not implemented in SE mode.  Which is fine, it's not
needed for correctly simulating this program on the GPU.

I'm not quite sure what the other issue is though.  It sounds like you are
saying you just needed to run "make", not "make square" in addition to it?

Thanks,
Matt

On Tue, Sep 1, 2020 at 4:23 AM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> That error was arising because when the makefile wasn't running properly I
> was trying out alternate methods on my own, but now I'm using the makefile
> again since the patch was pushed, but it's still not working.
> I myself don't know why I have to use make and make square both myself,
> but the only way I can explain it is that the "make" command makes square.o
> file and then make square has a different function entirely.
>
> I was following this (https://youtu.be/HhLiMrjqCvA), which needs me to do
> the "make square" step.
> I was also referring to
> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3 and
> http://www.gem5.org/2020/05/27/modern-gpu-applications.html regularly.
>
> I think I got it working, i used the "make" command to make the square.o
> file and then I run this command (gotten from
> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3 , with
> edits) "$build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
> --benchmark-root=/gem5-resources/src/square/bin -c square.o" inside the
> bash of the docker and it gave the passed signal and the stats.txt is
> filled now (although there were too many warnings for "ignoring syscall
> sched_yield(...)", which I'm unsure of what its use is)
> I'm still unsure of what this command did differently to the one in
> makefile, that calls hip_runtime.h. But I would suggest updating the
> makefile with this command.
>
> Thanks,
> Samaksh
>
>
> ___
> 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: GCN3 docker file missing

2020-09-01 Thread Samaksh Sethi via gem5-users
That error was arising because when the makefile wasn't running properly I
was trying out alternate methods on my own, but now I'm using the makefile
again since the patch was pushed, but it's still not working.
I myself don't know why I have to use make and make square both myself, but
the only way I can explain it is that the "make" command makes square.o
file and then make square has a different function entirely.

I was following this (https://youtu.be/HhLiMrjqCvA), which needs me to do
the "make square" step.
I was also referring to
http://www.gem5.org/documentation/general_docs/gpu_models/GCN3 and
http://www.gem5.org/2020/05/27/modern-gpu-applications.html regularly.

I think I got it working, i used the "make" command to make the square.o
file and then I run this command (gotten from
http://www.gem5.org/documentation/general_docs/gpu_models/GCN3 , with
edits) "$build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
--benchmark-root=/gem5-resources/src/square/bin -c square.o" inside the
bash of the docker and it gave the passed signal and the stats.txt is
filled now (although there were too many warnings for "ignoring syscall
sched_yield(...)", which I'm unsure of what its use is)
I'm still unsure of what this command did differently to the one in
makefile, that calls hip_runtime.h. But I would suggest updating the
makefile with this command.

Thanks,
Samaksh
___
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: GCN3 docker file missing

2020-09-01 Thread Matt Sinclair via gem5-users
This appears to be the same error Dan mentioned previously, where you are
using gcc instead of hipcc.  Did you try applying the fix he suggested
there?

Having said that, the first few lines appear to be making square already,
so I'm not sure why you are trying to make it again?

Matt

On Tue, Sep 1, 2020 at 3:13 AM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Matt,
> I had originally sent that message before the changes were implemented,
> so, now the "make" command seems to work (I'm not completely sure from the
> output) but "make square" is still stuck where it was before (As previously
> posted before at
> https://www.mail-archive.com/gem5-users@gem5.org/msg18296.html)
>
> $ docker run -it -v $PWD/gem5-resources:/gem5-resources -v $PWD/gem5:/gem5
> -w /gem5-resources/src/square gcn-gpu bash
> root@8ea50cb89263:/gem5-resources/src/square# make
> mkdir -p ./bin
> /opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o
> ./bin/square.o
> objdump: './bin/square.o': No such file
> root@8ea50cb89263:/gem5-resources/src/square# make
> make: Nothing to be done for 'gfx8-apu'.
> root@8ea50cb89263:/gem5-resources/src/square# make square
> g++ square.cpp   -o square
> square.cpp:24:29: fatal error: hip/hip_runtime.h: No such file or directory
> compilation terminated.
> : recipe for target 'square' failed
> make: *** [square] Error 1
>
> I can't find hip_runtime.h file manually too, so I think that might be
> missing from the repository
>
> Thanks,
> Samaksh
> ___
> 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: GCN3 docker file missing

2020-09-01 Thread Samaksh Sethi via gem5-users
Hi Matt,
I had originally sent that message before the changes were implemented, so,
now the "make" command seems to work (I'm not completely sure from the
output) but "make square" is still stuck where it was before (As previously
posted before at
https://www.mail-archive.com/gem5-users@gem5.org/msg18296.html)

$ docker run -it -v $PWD/gem5-resources:/gem5-resources -v $PWD/gem5:/gem5
-w /gem5-resources/src/square gcn-gpu bash
root@8ea50cb89263:/gem5-resources/src/square# make
mkdir -p ./bin
/opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o ./bin/square.o
objdump: './bin/square.o': No such file
root@8ea50cb89263:/gem5-resources/src/square# make
make: Nothing to be done for 'gfx8-apu'.
root@8ea50cb89263:/gem5-resources/src/square# make square
g++ square.cpp   -o square
square.cpp:24:29: fatal error: hip/hip_runtime.h: No such file or directory
compilation terminated.
: recipe for target 'square' failed
make: *** [square] Error 1

I can't find hip_runtime.h file manually too, so I think that might be
missing from the repository

Thanks,
Samaksh
___
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: GCN3 docker file missing

2020-08-31 Thread Matt Sinclair via gem5-users
Hi Samaksh,

Is this stuff you tried before or after the message Bobby sent?

Thanks,
Matt

On Mon, Aug 31, 2020 at 2:09 PM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> Ok so, doing this, on the first run, square.o is not created properly, but
> that error goes away on the 2nd run, and now there's a new error, which I
> have no clue about how to fix ("make gfx8-apu" gives the same error too),
> as it's probably something in the docker file. Hope I'm not missing
> anything here.
>
> $ docker run -it -v $PWD/gem5-resources:/gem5-resources -v $PWD/gem5:/gem5
> -w /gem5-resources/src/square gcn-docker bash
>
> root@36f387b74815:/gem5-resources/src/square# make
> mkdir -p ./bin
> /opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o
> ./bin/square.o
> objdump: './bin/square.o': No such file
>
> root@36f387b74815:/gem5-resources/src/square# make
> /opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o
> ./bin/square.o
> /opt/rocm/hcc-1.0/compiler/bin/llvm-link:
> /tmp/tmp.yjaznAvFJZ/square.kernel.bc:1:1: error: expected top-level entity
>
> __CLANG_OFFLOAD_BUNDLE__�host-x86_64-unknown-linux�8%hcc-amdgcn--amdhsa-gfx801�%8%hcc-amdgcn--amdhsa-gfx801ELF@
> �@x"@@
> @@dd   ``   `R�td
> `Q�td\AMDMAMDAMDGPU
> /opt/rocm/hcc-1.0/compiler/bin/llvm-link: error loading file
> '/tmp/tmp.yjaznAvFJZ/square.kernel.bc'
> ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored.
> ld: error in /tmp/tmp.yjaznAvFJZ/square.host.o(.eh_frame); no
> .eh_frame_hdr table will be created.
>
> Also, just a doubt, about the --rm docker option, what exactly does that
> remove, the docker image I created/compiled with docker build -t
>  (approx 3.1GB) or just this instance of
> the image? Because if it deletes the compiled image, then it would be
> really time consuming to recompile it everytime I need to test a change
> (eg-running make square multiple times).
> ___
> 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: GCN3 docker file missing

2020-08-31 Thread Bobby Bruce via gem5-users
Yes, the gem5-resources was wrong, but I think this commit fixes the issues
here? https://gem5-review.googlesource.com/c/public/gem5-resources/+/33555

It has just been merged, so if you pull the latest version I think this
should compile.

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

web: https://www.bobbybruce.net


On Mon, Aug 31, 2020 at 11:26 AM Matt Sinclair via gem5-users <
gem5-users@gem5.org> wrote:

> Kyle, can you please fix this (the Makefile) for square?  Or update the
> instructions in the way Dan described above?
>
> Matt
>
> On Mon, Aug 31, 2020 at 11:51 AM Daniel Gerzhoy via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Looks like that command needs to be updated, or the makefile.
>>
>> Try the command without "square" at the end (" docker run --rm -v
>> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
>> 
>> make ")
>> If you look in the makefile the first rule is "gfx8-apu" not "square" so
>> you could also change the command to be "make gfx8-apu"
>>
>> You are failing to compile with g++ because you need to use hipcc (the
>> hip compiler), which if you look at the makefile it is doing for you (along
>> with the important --amdgpu-target=gfx801 flag.
>>
>> Hope this helps,
>>
>> Dan
>>
>> On Mon, Aug 31, 2020 at 11:46 AM Samaksh Sethi via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Ok so I forgot to mention that the gem5-resources repository (
>>> https://gem5.googlesource.com/public/gem5-resources/) doesn't have the
>>> makefile in the main folder, it's actually in gem5-resources>>src>>square,
>>> so I can't just run the command (docker run --rm -v
>>> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
>>> 
>>> make square) directly or it just says ""make: *** No rule to make
>>> target 'square'.  Stop.""
>>>
>>> About square.out, I'm unable to make that too directly with gcc/g++
>>> because of the error that I'm getting which is the same as when I run docker
>>> run --rm -v $PWD/gem5-resources:/gem5-resources -w
>>> /gem5-resources/src/square  make square ""square.cpp:24:29:
>>> fatal error: hip/hip_runtime.h: No such file or directory compilation
>>> terminated."" I can't find the file myself too, I did look in the makefile
>>> folder (gem5-resources>>src>>square), I couldn't find the sources.mk
>>> file and so I couldn't find any $INCLUDE tag, so I couldn't understand
>>> where to look.
>>>
>>> Lastly, about docker files, I tried using the method you suggested with
>>> docker run -it  bash, let me know if there's a better method or
>>> any other options I should also be using. Also, about the --rm docker
>>> option, what exactly does that remove, the docker image I created/compiled
>>> with docker build -t  (approx 3.1GB) or just this instance of
>>> the image? because if it deletes the compiled image, then it would be
>>> really time consuming to recompile it everytime I need to test a change
>>> (eg-running make square multiple times). Also let me know if I'm using the
>>> terms image/container/instance correctly or not.
>>> ___
>>> 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
___
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: GCN3 docker file missing

2020-08-31 Thread Samaksh Sethi via gem5-users
Ok so, doing this, on the first run, square.o is not created properly, but
that error goes away on the 2nd run, and now there's a new error, which I
have no clue about how to fix ("make gfx8-apu" gives the same error too),
as it's probably something in the docker file. Hope I'm not missing
anything here.

$ docker run -it -v $PWD/gem5-resources:/gem5-resources -v $PWD/gem5:/gem5
-w /gem5-resources/src/square gcn-docker bash

root@36f387b74815:/gem5-resources/src/square# make
mkdir -p ./bin
/opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o ./bin/square.o
objdump: './bin/square.o': No such file

root@36f387b74815:/gem5-resources/src/square# make
/opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801  square.cpp -o ./bin/square.o
/opt/rocm/hcc-1.0/compiler/bin/llvm-link:
/tmp/tmp.yjaznAvFJZ/square.kernel.bc:1:1: error: expected top-level entity
__CLANG_OFFLOAD_BUNDLE__�host-x86_64-unknown-linux�8%hcc-amdgcn--amdhsa-gfx801�%8%hcc-amdgcn--amdhsa-gfx801ELF@
�@x"@@
@@dd   ``   `R�td
`Q�td\AMDMAMDAMDGPU
/opt/rocm/hcc-1.0/compiler/bin/llvm-link: error loading file
'/tmp/tmp.yjaznAvFJZ/square.kernel.bc'
ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored.
ld: error in /tmp/tmp.yjaznAvFJZ/square.host.o(.eh_frame); no .eh_frame_hdr
table will be created.

Also, just a doubt, about the --rm docker option, what exactly does that
remove, the docker image I created/compiled with docker build -t
 (approx 3.1GB) or just this instance of
the image? Because if it deletes the compiled image, then it would be
really time consuming to recompile it everytime I need to test a change
(eg-running make square multiple times).
___
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: GCN3 docker file missing

2020-08-31 Thread Matt Sinclair via gem5-users
Kyle, can you please fix this (the Makefile) for square?  Or update the
instructions in the way Dan described above?

Matt

On Mon, Aug 31, 2020 at 11:51 AM Daniel Gerzhoy via gem5-users <
gem5-users@gem5.org> wrote:

> Looks like that command needs to be updated, or the makefile.
>
> Try the command without "square" at the end (" docker run --rm -v
> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
> make ")
> If you look in the makefile the first rule is "gfx8-apu" not "square" so
> you could also change the command to be "make gfx8-apu"
>
> You are failing to compile with g++ because you need to use hipcc (the hip
> compiler), which if you look at the makefile it is doing for you (along
> with the important --amdgpu-target=gfx801 flag.
>
> Hope this helps,
>
> Dan
>
> On Mon, Aug 31, 2020 at 11:46 AM Samaksh Sethi via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Ok so I forgot to mention that the gem5-resources repository (
>> https://gem5.googlesource.com/public/gem5-resources/) doesn't have the
>> makefile in the main folder, it's actually in gem5-resources>>src>>square,
>> so I can't just run the command (docker run --rm -v
>> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
>> 
>> make square) directly or it just says ""make: *** No rule to make target
>> 'square'.  Stop.""
>>
>> About square.out, I'm unable to make that too directly with gcc/g++
>> because of the error that I'm getting which is the same as when I run docker
>> run --rm -v $PWD/gem5-resources:/gem5-resources -w
>> /gem5-resources/src/square  make square ""square.cpp:24:29:
>> fatal error: hip/hip_runtime.h: No such file or directory compilation
>> terminated."" I can't find the file myself too, I did look in the makefile
>> folder (gem5-resources>>src>>square), I couldn't find the sources.mk
>> file and so I couldn't find any $INCLUDE tag, so I couldn't understand
>> where to look.
>>
>> Lastly, about docker files, I tried using the method you suggested with
>> docker run -it  bash, let me know if there's a better method or
>> any other options I should also be using. Also, about the --rm docker
>> option, what exactly does that remove, the docker image I created/compiled
>> with docker build -t  (approx 3.1GB) or just this instance of
>> the image? because if it deletes the compiled image, then it would be
>> really time consuming to recompile it everytime I need to test a change
>> (eg-running make square multiple times). Also let me know if I'm using the
>> terms image/container/instance correctly or not.
>> ___
>> 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

[gem5-users] Re: GCN3 docker file missing

2020-08-31 Thread Daniel Gerzhoy via gem5-users
Looks like that command needs to be updated, or the makefile.

Try the command without "square" at the end (" docker run --rm -v
$PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
make ")
If you look in the makefile the first rule is "gfx8-apu" not "square" so
you could also change the command to be "make gfx8-apu"

You are failing to compile with g++ because you need to use hipcc (the hip
compiler), which if you look at the makefile it is doing for you (along
with the important --amdgpu-target=gfx801 flag.

Hope this helps,

Dan

On Mon, Aug 31, 2020 at 11:46 AM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> Ok so I forgot to mention that the gem5-resources repository (
> https://gem5.googlesource.com/public/gem5-resources/) doesn't have the
> makefile in the main folder, it's actually in gem5-resources>>src>>square,
> so I can't just run the command (docker run --rm -v
> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
> make square) directly or it just says ""make: *** No rule to make target
> 'square'.  Stop.""
>
> About square.out, I'm unable to make that too directly with gcc/g++
> because of the error that I'm getting which is the same as when I run docker
> run --rm -v $PWD/gem5-resources:/gem5-resources -w
> /gem5-resources/src/square  make square ""square.cpp:24:29:
> fatal error: hip/hip_runtime.h: No such file or directory compilation
> terminated."" I can't find the file myself too, I did look in the makefile
> folder (gem5-resources>>src>>square), I couldn't find the sources.mk file
> and so I couldn't find any $INCLUDE tag, so I couldn't understand where to
> look.
>
> Lastly, about docker files, I tried using the method you suggested with
> docker run -it  bash, let me know if there's a better method or
> any other options I should also be using. Also, about the --rm docker
> option, what exactly does that remove, the docker image I created/compiled
> with docker build -t  (approx 3.1GB) or just this instance of
> the image? because if it deletes the compiled image, then it would be
> really time consuming to recompile it everytime I need to test a change
> (eg-running make square multiple times). Also let me know if I'm using the
> terms image/container/instance correctly or not.
> ___
> 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: GCN3 docker file missing

2020-08-31 Thread Samaksh Sethi via gem5-users
Ok so I forgot to mention that the gem5-resources repository (
https://gem5.googlesource.com/public/gem5-resources/) doesn't have the
makefile in the main folder, it's actually in gem5-resources>>src>>square,
so I can't just run the command (docker run --rm -v
$PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
make square) directly or it just says ""make: *** No rule to make target
'square'.  Stop.""

About square.out, I'm unable to make that too directly with gcc/g++ because
of the error that I'm getting which is the same as when I run docker run
--rm -v $PWD/gem5-resources:/gem5-resources -w
/gem5-resources/src/square 
make square ""square.cpp:24:29: fatal error: hip/hip_runtime.h: No such
file or directory compilation terminated."" I can't find the file myself
too, I did look in the makefile folder (gem5-resources>>src>>square), I
couldn't find the sources.mk file and so I couldn't find any $INCLUDE tag,
so I couldn't understand where to look.

Lastly, about docker files, I tried using the method you suggested with
docker run -it  bash, let me know if there's a better method or
any other options I should also be using. Also, about the --rm docker
option, what exactly does that remove, the docker image I created/compiled
with docker build -t  (approx 3.1GB) or just this instance of
the image? because if it deletes the compiled image, then it would be
really time consuming to recompile it everytime I need to test a change
(eg-running make square multiple times). Also let me know if I'm using the
terms image/container/instance correctly or not.
___
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: GCN3 docker file missing

2020-08-30 Thread Daniel Gerzhoy via gem5-users
Samaksh,

Yep, thats precisely what I've been doing. Using the docker from the
develop branch, and then the simulator is the staging branch.

It actually looks like you pointed the simulator onto the square.cpp source
file rather than the square.out (or whatever your compiler outputs).

Not sure if this was a typo or not, but you need to compile the source into
a binary first using the command from that link:

docker run --rm -v $PWD/gem5-resources:/gem5-resources -w /gem5-resources
 make square

You can also just have a docker container running and then attach to it to
do command line (commands) directly in the container, so you could cd into
gem5-resources and then just type "make square." \Sometimes this is more
convenient, sometimes not. Up to you.

Best,

Dan


On Sun, Aug 30, 2020 at 7:10 PM Matt Sinclair 
wrote:

> Dan or Kyle can confirm, but yes I believe that is what others are doing.
>
> If you look through the posted text from running square, you have a fatal
> error because of it being able to access gem5-resources.  Kyle, have you
> seen this before?
>
> Matt
>
> On Sun, Aug 30, 2020 at 5:43 PM Samaksh Sethi via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Okay, yeah that does make sense to me.
>> So what i understand is, I used the develop branch for the dockerfile and
>> then I run everything as usual from the staging branch
>>
>> Ok, so that works, Thanks a lot!!
>> I was able to get the build command running,
>>
>> Just one last thing, how do I confirm everything worked ok?
>> I ran this command for square (changed a bit, from
>> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3)
>> *docker run --rm -v $PWD/gem5:/gem5 -v
>> $PWD/gem5-resources:/gem5-resources -w /gem5 gcn-docker
>> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
>> --benchmark-root=/gem5-resources/src/square -c square.cpp*
>> warn: system.ruby.network adopting orphan SimObject param 'int_links'
>> warn: system.ruby.network adopting orphan SimObject param 'ext_links'
>> 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 Aug 30 2020 22:11:25
>> gem5 started Aug 30 2020 22:27:07
>> gem5 executing on d154d77a3679, pid 1
>> command line: build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
>> --benchmark-root=/gem5-resources/src/square -c square.cpp
>>
>> info: Standard input is not a terminal, disabling listeners.
>> Num SQC =  1 Num scalar caches =  1 Num CU =  4
>> Global frequency set at 1 ticks per second
>> fatal: Can't load object file /gem5-resources/src/square/square.cpp
>> Memory Usage: 1182408 KBytes
>>
>> Now what? There's nothing in the stats.txt, is there any other command I
>> need to run too?
>>
>>
>>
>>
>> ___
>>
>> 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
>
> --
> Regards,
> Matt Sinclair
> Assistant Professor
> University of Wisconsin-Madison
> Computer Sciences Department
> cs.wisc.edu/~sinclair
>
___
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: GCN3 docker file missing

2020-08-30 Thread Matt Sinclair via gem5-users
Dan or Kyle can confirm, but yes I believe that is what others are doing.

If you look through the posted text from running square, you have a fatal
error because of it being able to access gem5-resources.  Kyle, have you
seen this before?

Matt

On Sun, Aug 30, 2020 at 5:43 PM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> Okay, yeah that does make sense to me.
> So what i understand is, I used the develop branch for the dockerfile and
> then I run everything as usual from the staging branch
>
> Ok, so that works, Thanks a lot!!
> I was able to get the build command running,
>
> Just one last thing, how do I confirm everything worked ok?
> I ran this command for square (changed a bit, from
> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3)
> *docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources
> -w /gem5 gcn-docker build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
> --benchmark-root=/gem5-resources/src/square -c square.cpp*
> warn: system.ruby.network adopting orphan SimObject param 'int_links'
> warn: system.ruby.network adopting orphan SimObject param 'ext_links'
> 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 Aug 30 2020 22:11:25
> gem5 started Aug 30 2020 22:27:07
> gem5 executing on d154d77a3679, pid 1
> command line: build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
> --benchmark-root=/gem5-resources/src/square -c square.cpp
>
> info: Standard input is not a terminal, disabling listeners.
> Num SQC =  1 Num scalar caches =  1 Num CU =  4
> Global frequency set at 1 ticks per second
> fatal: Can't load object file /gem5-resources/src/square/square.cpp
> Memory Usage: 1182408 KBytes
>
> Now what? There's nothing in the stats.txt, is there any other command I
> need to run too?
>
>
>
>
> ___
>
> 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

-- 
Regards,
Matt Sinclair
Assistant Professor
University of Wisconsin-Madison
Computer Sciences Department
cs.wisc.edu/~sinclair
___
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: GCN3 docker file missing

2020-08-30 Thread Samaksh Sethi via gem5-users
Okay, yeah that does make sense to me.
So what i understand is, I used the develop branch for the dockerfile and
then I run everything as usual from the staging branch

Ok, so that works, Thanks a lot!!
I was able to get the build command running,

Just one last thing, how do I confirm everything worked ok?
I ran this command for square (changed a bit, from
http://www.gem5.org/documentation/general_docs/gpu_models/GCN3)
*docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources
-w /gem5 gcn-docker build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
--benchmark-root=/gem5-resources/src/square -c square.cpp*
warn: system.ruby.network adopting orphan SimObject param 'int_links'
warn: system.ruby.network adopting orphan SimObject param 'ext_links'
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 Aug 30 2020 22:11:25
gem5 started Aug 30 2020 22:27:07
gem5 executing on d154d77a3679, pid 1
command line: build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
--benchmark-root=/gem5-resources/src/square -c square.cpp

info: Standard input is not a terminal, disabling listeners.
Num SQC =  1 Num scalar caches =  1 Num CU =  4
Global frequency set at 1 ticks per second
fatal: Can't load object file /gem5-resources/src/square/square.cpp
Memory Usage: 1182408 KBytes

Now what? There's nothing in the stats.txt, is there any other command I
need to run too?
___
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: GCN3 docker file missing

2020-08-30 Thread Matt Sinclair via gem5-users
Ok, we can try to make it clear that you should be looking at the develop
branch.

I thought the docker was pointing to the GCN3 staging branch, despite being
on the develop branch, but that error is likely what this pending patch is
fixing: https://gem5-review.googlesource.com/c/public/gem5/+/33655.  Since
the GCN3 staging branch is in the process of being merged into develop, not
everything is working yet.  Thus, like Dan G. mentioned to you previously,
I recommend pointing the Docker to the staging branch for now.

Matt

On Sun, Aug 30, 2020 at 1:27 PM Samaksh Sethi via gem5-users <
gem5-users@gem5.org> wrote:

> Thanks!
> That itself was my issue, I didn't understand from the documentation that
> I had to clone the develop branch, I was just using the master branch!
>
> But I'm still getting errors just running build commands directly from the
> documentation
> https://youtu.be/HhLiMrjqCvA - This is the guide I'm following
>
> *1st run - *
> *docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn-docker scons -sQ -j4
> build/GCN3_X86/gem5.opt*
> Warning: Your compiler doesn't support incremental linking and lto at the
> same
>  time, so lto is being disabled. To force lto on anyway, use the
>  --force-lto option. That will disable partial linking.
> Info: Using Python config: python2.7-config
> Checking for hdf5-serial using pkg-config... no
> Checking for hdf5 using pkg-config...Package hdf5-serial was not found in
> the pkg-config search path.
> Perhaps you should add the directory containing `hdf5-serial.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'hdf5-serial' found
>  no
> Package hdf5 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `hdf5.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'hdf5' found
> Warning: Couldn't find any HDF5 C++ libraries. Disabling
>  HDF5 support.
> Variables file /gem5/build/variables/GCN3_X86 not found,
>   using defaults in /gem5/build_opts/GCN3_X86
> MOESI_AMD_Base-dir.sm:220: Warning: Non-void return ignored, return type
> is 'bool'
> MOESI_AMD_Base-dir.sm:1034: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1038: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1042: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1046: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1050: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1054: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:1058: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dir.sm:586: Warning: Unused action: l_queueMemWBReq, Write
> WB data to memory
> MOESI_AMD_Base-dir.sm:941: Warning: Unused action:
> mwc_markSinkWriteCancel, Mark to sink impending VicDirty
> MOESI_AMD_Base-dir.sm:1033: Warning: Unused action: dl_deallocateL3,
> deallocate the L3 block
> MOESI_AMD_Base-dir.sm:1069: Warning: Unused action:
> yy_recycleResponseQueue, recycle response queue
> MOESI_AMD_Base-dma.sm:187: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-dma.sm:191: Warning: Non-void return ignored, return type
> is 'Tick'
> MOESI_AMD_Base-CorePair.sm:325: Warning: Non-void return ignored, return
> type is 'bool'
> MOESI_AMD_Base-CorePair.sm:802: Warning: Non-void return ignored, return
> type is 'Tick'
> MOESI_AMD_Base-CorePair.sm:806: Warning: Non-void return ignored, return
> type is 'Tick'
> MOESI_AMD_Base-CorePair.sm:810: Warning: Non-void return ignored, return
> type is 'Tick'
> MOESI_AMD_Base-CorePair.sm:814: Warning: Non-void return ignored, return
> type is 'Tick'
> MOESI_AMD_Base-CorePair.sm:1270: Warning: Non-void return ignored, return
> type is 'Scalar'
> MOESI_AMD_Base-CorePair.sm:1274: Warning: Non-void return ignored, return
> type is 'Scalar'
> MOESI_AMD_Base-CorePair.sm:1278: Warning: Non-void return ignored, return
> type is 'Scalar'
> MOESI_AMD_Base-CorePair.sm:1282: Warning: Non-void return ignored, return
> type is 'Scalar'
> GPU_VIPER-TCP.sm:166: Warning: Non-void return ignored, return type is
> 'bool'
> GPU_VIPER-TCP.sm:451: Warning: Non-void return ignored, return type is
> 'Tick'
> GPU_VIPER-TCP.sm:455: Warning: Non-void return ignored, return type is
> 'Tick'
> GPU_VIPER-TCP.sm:532: Warning: Non-void return ignored, return type is
> 'Scalar'
> GPU_VIPER-TCP.sm:536: Warning: Non-void return ignored, return type is
> 'Scalar'
> GPU_VIPER-TCP.sm:385: Warning: Unused action: norl_issueRdBlkOrloadDone,
> local load done
> GPU_VIPER-SQC.sm:143: Warning: Non-void return ignored, return type is
> 'bool'
> GPU_VIPER-SQC.sm:275: Warning: Non-void return ignored, return type is
> 'Tick'
> GPU_VIPER-SQC.sm:279: Warning: Non-void return ignored, return type is
> 'Tick'
> GPU_VIPER-TCC.sm:168: Warning: Non-void return ignored, return type is
> 'bool'
> 

[gem5-users] Re: GCN3 docker file missing

2020-08-30 Thread Samaksh Sethi via gem5-users
Thanks!
That itself was my issue, I didn't understand from the documentation that I
had to clone the develop branch, I was just using the master branch!

But I'm still getting errors just running build commands directly from the
documentation
https://youtu.be/HhLiMrjqCvA - This is the guide I'm following

*1st run - *
*docker run --rm -v $PWD/gem5:/gem5 -w /gem5 gcn-docker scons -sQ -j4
build/GCN3_X86/gem5.opt*
Warning: Your compiler doesn't support incremental linking and lto at the
same
 time, so lto is being disabled. To force lto on anyway, use the
 --force-lto option. That will disable partial linking.
Info: Using Python config: python2.7-config
Checking for hdf5-serial using pkg-config... no
Checking for hdf5 using pkg-config...Package hdf5-serial was not found in
the pkg-config search path.
Perhaps you should add the directory containing `hdf5-serial.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hdf5-serial' found
 no
Package hdf5 was not found in the pkg-config search path.
Perhaps you should add the directory containing `hdf5.pc'
to the PKG_CONFIG_PATH environment variable
No package 'hdf5' found
Warning: Couldn't find any HDF5 C++ libraries. Disabling
 HDF5 support.
Variables file /gem5/build/variables/GCN3_X86 not found,
  using defaults in /gem5/build_opts/GCN3_X86
MOESI_AMD_Base-dir.sm:220: Warning: Non-void return ignored, return type is
'bool'
MOESI_AMD_Base-dir.sm:1034: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1038: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1042: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1046: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1050: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1054: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:1058: Warning: Non-void return ignored, return type
is 'Tick'
MOESI_AMD_Base-dir.sm:586: Warning: Unused action: l_queueMemWBReq, Write
WB data to memory
MOESI_AMD_Base-dir.sm:941: Warning: Unused action: mwc_markSinkWriteCancel,
Mark to sink impending VicDirty
MOESI_AMD_Base-dir.sm:1033: Warning: Unused action: dl_deallocateL3,
deallocate the L3 block
MOESI_AMD_Base-dir.sm:1069: Warning: Unused action:
yy_recycleResponseQueue, recycle response queue
MOESI_AMD_Base-dma.sm:187: Warning: Non-void return ignored, return type is
'Tick'
MOESI_AMD_Base-dma.sm:191: Warning: Non-void return ignored, return type is
'Tick'
MOESI_AMD_Base-CorePair.sm:325: Warning: Non-void return ignored, return
type is 'bool'
MOESI_AMD_Base-CorePair.sm:802: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-CorePair.sm:806: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-CorePair.sm:810: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-CorePair.sm:814: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-CorePair.sm:1270: Warning: Non-void return ignored, return
type is 'Scalar'
MOESI_AMD_Base-CorePair.sm:1274: Warning: Non-void return ignored, return
type is 'Scalar'
MOESI_AMD_Base-CorePair.sm:1278: Warning: Non-void return ignored, return
type is 'Scalar'
MOESI_AMD_Base-CorePair.sm:1282: Warning: Non-void return ignored, return
type is 'Scalar'
GPU_VIPER-TCP.sm:166: Warning: Non-void return ignored, return type is
'bool'
GPU_VIPER-TCP.sm:451: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCP.sm:455: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCP.sm:532: Warning: Non-void return ignored, return type is
'Scalar'
GPU_VIPER-TCP.sm:536: Warning: Non-void return ignored, return type is
'Scalar'
GPU_VIPER-TCP.sm:385: Warning: Unused action: norl_issueRdBlkOrloadDone,
local load done
GPU_VIPER-SQC.sm:143: Warning: Non-void return ignored, return type is
'bool'
GPU_VIPER-SQC.sm:275: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-SQC.sm:279: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCC.sm:168: Warning: Non-void return ignored, return type is
'bool'
GPU_VIPER-TCC.sm:442: Warning: Non-void return ignored, return type is
'Scalar'
GPU_VIPER-TCC.sm:446: Warning: Non-void return ignored, return type is
'Scalar'
GPU_VIPER-TCC.sm:551: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCC.sm:555: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCC.sm:559: Warning: Non-void return ignored, return type is
'Tick'
GPU_VIPER-TCC.sm:583: Warning: Non-void return ignored, return type is
'Tick'
MOESI_AMD_Base-L3cache.sm:196: Warning: Non-void return ignored, return
type is 'bool'
MOESI_AMD_Base-L3cache.sm:611: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-L3cache.sm:615: Warning: Non-void return ignored, return
type is 'Tick'
MOESI_AMD_Base-L3cache.sm:619: Warning: Non-void return ignored, return
type is 'Tick'

[gem5-users] Re: GCN3 docker file missing

2020-08-30 Thread Matt Sinclair via gem5-users
Can you please provide us with some additional information about how you
are attempting to run it?  For example, what branch are you using?

Looks like there is an extra 'o' in that link, thanks -- Kyle can you
please fix this?

To the best of our knowledge, the Docker is working, so I suspect there is
a problem with how you are using it, but will need more information before
we can help.  My guess is you are looking at an incorrect branch, because I
can find the Docker, e.g., here:
https://gem5.googlesource.com/public/gem5/+/refs/heads/develop/util/dockerfiles/gcn-gpu/.
I believe only the develop branch has the docker right now, and yes the AMD
GCN3 branch does not have it because we checked it into develop instead
since the AMD GCN3 branch is currently being merged into develop.

Matt

On Sun, Aug 30, 2020 at 7:25 AM samakshsethi.ss--- via gem5-users <
gem5-users@gem5.org> wrote:

> I've been trying to run GCN3 for the past few days, but there's some
> errors rising up.
> I've tried multiple methods
> 1. Docker Method
> http://www.gem5.org/documentation/general_docs/gpu_models/GCN3
> Here, the repository link is broken, but if I use the working link (
> https://gem5.googlesource.com/public/gem5/) The repository doesn't have
> the util/dockerfiles/gcn-gpu/ subdirectory. Even the amd/gem5 branch of the
> gem5 repo doesn't have the docker files.
> 2. Direct Method
> http://www.m5sim.org/GPU_Models
> Here the first command does not work, scons -sQ -jN
> ./build/GCN3_X86/gem5.opt
> I kept N as 4, but there is this error
>
> *** Error loading site_init file './site_scons/site_init.py':
>   File "./site_scons/site_init.py", line 52
>
> except SystemExit, e:
>
>  ^
>
> SyntaxError: invalid syntax
>
> There shouldn't be an error in scons because I have used gem5 successfully
> before.
>
> I'm a real beginner in gem5 so I might be missing something.
> Any help would be appreciated.
> Thanks!!
> ___
> 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