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

undefined clblassetup #356

Open
jvalleros opened this issue May 4, 2021 · 7 comments
Open

undefined clblassetup #356

jvalleros opened this issue May 4, 2021 · 7 comments

Comments

@jvalleros
Copy link

i'm trying to use clblas in my project but i can't do it because i got undefined error
imagen

i don't know if i do anything bad

@GasonC
Copy link

GasonC commented May 5, 2022

Same problem here.

@jpola
Copy link

jpola commented May 5, 2022

Hi you can execute ldd -d -r <name_of_the_executable> to display the dependencies of your application. Maybe the clBLAS library is not visible.

@GasonC
Copy link

GasonC commented May 6, 2022

Hi you can execute ldd -d -r <name_of_the_executable> to display the dependencies of your application. Maybe the clBLAS library is not visible.

root@user-System-Product-Name:/home/user/clBLAS/src/samples# ldd -d -r example_sgemm.c
not a dynamic executable
root@user-System-Product-Name:/home/user/clBLAS/src/samples# file ./example_sgemm.c
./example_sgemm.c: C source, ASCII text

Is that means my clBLAS install incorrect?

@jpola
Copy link

jpola commented May 6, 2022

Have you compiled the clBLAS successfully? I thought the issue presented itself during the linking stage with your program.

@GasonC
Copy link

GasonC commented May 10, 2022

Have you compiled the clBLAS successfully? I thought the issue presented itself during the linking stage with your program.

before I compiled clBLAS, I install AMD ROCm 4.3.1
when compile, it shows some message, then I install some package and set path
1.install gfortran
2.set ROCm dir OpenCL as OpenCL_ROOT
3.install libblas-dev
4.install libboost-all-dev
then clBlas can compiled with no errors.

so I can't figure out why it can't run.

@jpola
Copy link

jpola commented May 10, 2022

Ok, if you compiled the clBLAS then fine. The next thing you are probably doing is to use the clBLAS in your application. For doing that you have to instruct the compiler where to find the clBLAS headers and libs. it is -I path_to_the_clBLAS_headers and -L path_to_dir_with_clBLAS_libs -lclBLAS
How does it look like in your case?

@GasonC
Copy link

GasonC commented May 12, 2022

Ok, if you compiled the clBLAS then fine. The next thing you are probably doing is to use the clBLAS in your application. For doing that you have to instruct the compiler where to find the clBLAS headers and libs. it is -I path_to_the_clBLAS_headers and -L path_to_dir_with_clBLAS_libs -lclBLAS How does it look like in your case?

Hi, after add those command It's seems this problem solved.
thanks.

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

3 participants