Closed samolego closed 7 months ago
I am not sure what goes wrong, but errors such as ld: error: undefined symbol: clCreateKernel
indicate that the linker can't find the most basic OpenCL functions, such as clCreateKernel, which has been in OpenCL since version 1.0. Thus, somehow it must be not properly linking to your OpenCL library, or your OpenCL library is incorrect. You can run make VERBOSE=1
or make -n
to see the exact linker command, maybe that will help with debugging the issue. You can also inspect your OpenCL library for symbols by using a tool such as nm
on Linux.
Hope this helps.
Found out that I was pulling the wrong library from phone. Was reading the whisper.cpp guide which includes guide for mali
(afaik that's mediatek's) so I thought I need to take adreno
, as I have a qualcomm chip. Turns out my phone had libopencl.so
in /system/vendor/lib64/libOpenCL.so
.
Sorry for trouble, should check better next time. Keep up good work!
Hello there, I'm trying to compile this library to use with whisper.cpp on my android device.
I've done the following:
Cloned this repo & https://github.com/KhronosGroup/OpenCL-Headers Copied the opencl lib from my phone to pc:
Created build dir in clblast Then ran the cmake (paths are correct)
When running
make
, I get an error:What am I doing wrong?