I read here that Google has openly displayed its opposition to OpenCL, and another thread discusses why Google choose RenderScript instead of OpenCL. Both of these posts are old.
Does recent Android versions (N,O) include support for OpenCL ?
I read here that Google has openly displayed its opposition to OpenCL, and another thread discusses why Google choose RenderScript instead of OpenCL. Both of these posts are old.
Does recent Android versions (N,O) include support for OpenCL ?
The driver support does not only depend on the Android OS itself, but rather the hardware manufacturers. Arm for example has opencl driver support for android 6 and 7. I tried looking for snapdragon as well but could not find. It would be better if you checked the hardware manufacturers web pages for corresponding OpenCL drivers. Here are the links for Arm Mali:
Another thing is, the driver support for OpenCL is far better in Android OS than Linux since I am having a hard time finding OpenCL support for mobile devices running Linux.
You can just dynamic link against:
It will work perfectly. Even if Android does not have an API to support it, the hardware does, it will work just like OpenGL does.