cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

bred
Adept I

running the example of hof , cannot find -lhsa-runtime-ext64

HI,


I have a question about running the example of hof
I run the "make " in the example  folder, it says cannot find -lhsa-runtime-ext64,


g++ -Wl,--unresolved-symbols=ignore-in-shared-libs main.o -L/opt/hsa/lib -lhsa-runtime64 -lhsa-runtime-ext64 -o hof_example
/usr/bin/ld: cannot find -lhsa-runtime-ext64
collect2: error: ld returned 1 exit status
make: *** [hof_example] Error 1

Then I check the lib, it seem there has libhsa-runtime64.so.1


CHOserver:~/HSAFoundation/HSA-HOF-AMD/example$ ls /opt/hsa/lib
libhsa-ext-finalize64.so libhsa-ext-image64.so libhsa-runtime64.so libhsa-runtime-tools64.so
libhsa-ext-finalize64.so.1 libhsa-ext-image64.so.1 libhsa-runtime64.so.1 libhsa-runtime-tools64.so.1

Is there something I should try with it ?

0 Likes
2 Replies
mogu
Journeyman III

it can't find libhsa-runtime-ext64.so  because it's not in your /opt/hsa/lib - look closely, there is ext-finalize64 and ext-image64 but no runtime-ext64. You need to (re)install HSA libs properly...

0 Likes

Previous versions of the HSA Runtime included hsa-runtime-ext64 library.

More recent versions don't include it anymore.

To build the example just remove -lhsa-runtime-ext64 from Makefile and run make again.

I have the latest HSA Runtime and with this change the example works

thank you for response

0 Likes