Hi Daniel,

Actually compiling m5op_x86.o and m5_mmap.o fails with hipcc.
Gcc works fine. Here's my steps.

*Compilation Steps:*
g++ -O2 -I/sam/gem5/util/m5/../../include -o m5op_x86.o -c m5op_x86.S
g++ -O2 -I/sam/gem5/util/m5/../../include -o m5_mmap.o -c m5_mmap.c

/opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801 -g -O2 2DConvolution.cpp
-I/sam/gem5/include /sam/gem5/util/m5/m5op_x86.o
/sam/gem5/util/m5/m5_mmap.o -o 2DConvolution.exe

Thanks,
Sampad

On Sat, Aug 1, 2020 at 3:17 PM Daniel Gerzhoy <daniel.gerz...@gmail.com>
wrote:

> Sorry, using hipcc* to link them together.
>
> On Sat, Aug 1, 2020 at 2:15 PM Daniel Gerzhoy <daniel.gerz...@gmail.com>
> wrote:
>
>> I would suggest compiling M5op with gcc or g++ with a -c flag and then
>> using M5op to link them together.
>>
>> On Sat, Aug 1, 2020 at 2:13 PM Sampad Mohapatra via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Hello,
>>>
>>> While trying to compile polybench benchmarks with m5_exit(0) using the
>>> HIP compiler ()
>>> I am getting a lot of errors (m5ops.h was included).
>>> Please give me some advice.
>>>
>>> *Compile Command:*
>>>
>>> /opt/rocm/hip/bin/hipcc --amdgpu-target=gfx801 -g -O2 2DConvolution.cpp
>>> -I/sam/gem5/include /sam/gem5/util/m5/m5op_x86.S -o 2DConvolution.exe
>>>
>>> *Error:*
>>>
>>> /sam/gem5/util/m5/m5op_x86.S:78:16: error: unknown directive
>>> .globl m5_arm; .func m5_arm; m5_arm: .byte 0x0F, 0x04; .word 0x00; ret;
>>> .endfunc;
>>>                ^
>>> /sam/gem5/util/m5/m5op_x86.S:78:73: error: unknown directive
>>> .globl m5_arm; .func m5_arm; m5_arm: .byte 0x0F, 0x04; .word 0x00; ret;
>>> .endfunc;
>>>                                                                         ^
>>> /sam/gem5/util/m5/m5op_x86.S:79:20: error: unknown directive
>>> .globl m5_quiesce; .func m5_quiesce; m5_quiesce: .byte 0x0F, 0x04; .word
>>> 0x01; ret; .endfunc;
>>>                    ^
>>> /sam/gem5/util/m5/m5op_x86.S:79:85: error: unknown directive
>>> .globl m5_quiesce; .func m5_quiesce; m5_quiesce: .byte 0x0F, 0x04; .word
>>> 0x01; ret; .endfunc;
>>>
>>> ...
>>>
>>> Thank You,
>>> Sampad Mohapatra
>>>                             ^
>>> _______________________________________________
>>> 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