-
Notifications
You must be signed in to change notification settings - Fork 101
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
OpenCL initialization failed #11
Comments
If it's not obvious where the issue comes from maybe try to use the Compute Library on its own to start with ? Have you successfully used your OpenCL driver in the past on your platform ? |
No, this is the first time I am trying to use openCL in my device. Mine is a 32 bit system. So I used the following command: arm-linux-gnueabihf-gcc opencl-1.2-stubs/opencl_stubs.c -Iinclude -shared -o build/libOpenCL.so It seems that libOpenCL.so did not get built properly.Initially it was saying: " cannot open output file build/libOpenCL.so: no such file or directory". Then I explicitly created build directory "mkdir build". After that I got the error: "error adding symbols: Bad value". However, I am getting the same error "OpenCL initialization failed" after building CaffeOnACL again. |
As my understanding, this error message didn't prevent CaffeOnACL's running, and the CaffeOnACL should use CPU instead of GPU. Is it right? The file build/libOpenCL.so is stub library just for compile. If you doesn't export LD_LIBRARY_PATH=..., CaffeOnACL should use the libOpenCL.so in /usr/lib in runtime. Can you help check the symbol of the two libOpenCL.so by the below commands? |
Hi, I closed this thread thinking CaffeOnACL is built. But it failed in unit_tests. I do not know if it is a issue of libOpenCL.so /home/odroid/ComputeLibrary/build/opencl-1.2-stubs/libOpenCL.so |
closing this issue |
Hi,
I was able to build CaffeOnACL in my machine. It has ARM Mali-T628 GPU. But when I tried to run Caffe, it says " OpenCL initialization failed". I could not trace back the possible reason for this.
Also,the operating system I am using is ubuntu 14.04. Is it necessary to have ubuntu 16.04 to install CAffeOnACL? If that is the case how am I able to build it in the first place?
Thank you.
The text was updated successfully, but these errors were encountered: