Open DavdGao opened 1 year ago
Regarding Q1, compiling the OpenCL library yourself seems unusual, I would expect that you simply get one from your vendor or find one on your device and link against that one. In any case, something like clGetPlatformsIDs
not working isn't a CLBlast problem, so I can't help you any further with that. You would have to look at your vendors manual for OpenCL.
Regarding Q2, I think linking against either a dynamic or static version of CLBlast should work. Just go with your preference or whatever is easiest.
By the way, there is quite some information spread over various issues regarding Android on CLBlast's GitHub issue tracker, as well as some Android documentation at https://github.com/CNugteren/CLBlast/blob/master/doc/installation.md#android-compilation-from-source.
I hope this helps.
build OpenCL lib by mesa or KHR code
Target
I want to build CLBlast for android app with JNI.
Question
I am cross-compiling clblast for android with the following scripts.
libOpenCL.a
orlibOpenCL.so
for CLBlast?Update 2023/10/25
-DOPENCL_LIBRARIES
, but only shared libraries work.libOpenCL.a
andlibclblast.a
in android project.libOpenCL.a
rather thanlibOpenCL.so
clGetPlatformsIDs
in JNI code returns -1001! Any suggestions?