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 <image_name>
> 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 
>> <image_name>
>> 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 <image_name> 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 <image-name> 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 <image-name> (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

Reply via email to