Showing results for 
Search instead for 
Did you mean: 

Newcomers Start Here

Adept I

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


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

CHOserver:~/HSAFoundation/HSA-HOF-AMD/example$ ls /opt/hsa/lib

Is there something I should try with it ?

0 Kudos
2 Replies
Journeyman III

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

it can't find  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 Kudos
Adept I

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

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 Kudos