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
> <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).
> _______________________________________________
> 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