Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find -lhsa-runtime-ext64 #1

Open
Redshoee opened this issue Dec 31, 2015 · 2 comments
Open

cannot find -lhsa-runtime-ext64 #1

Redshoee opened this issue Dec 31, 2015 · 2 comments

Comments

@Redshoee
Copy link

HI,
I have a question about running the example
I run the "make " in the example , 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 can try with it ?

@ancahamuraru
Copy link

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.

Please let us know if this works for you too.

@Redshoee
Copy link
Author

Yes, it works by removing " -lhsa-runtime-ext64".

However,while I am trying to run the example : ./hof_example , Segmentation fault (core dumped)emerges.

Does it only work with specific hardware like AMD A10-7850 APU (KV) or AMD FX-8800P ?

Besides,
I used the hof covert the globals.hsail to globals.o .
Is there disassembler can be used for globals.o (kv format) ?
I want to compare hsail with KV isa if there is lots of differences.

Sorry for replying lately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants