Re: JOCL on the ODROID-XU / Android
Posted by MichaelEGR on Oct 10, 2013; 7:32pm
URL: https://forum.jogamp.org/JOCL-on-the-ODROID-XU-Android-tp4030220p4030226.html
Cool, I'll definitely take a look as soon as I can.. The new day gig is consuming my time, so yeah.. This is going to be one of those barn storming getting the demo working without much time to spare to get the slides & white paper ready kind of thing for the initial presentation at OnAndroidConf... It should be a good audience though...
One of the solutions I'm proposing for Google and the rest of the Android OEM world to do instead of intentionally crippling their devices is to make the library accessible by a LOCAL_LDLIBS parameter in the NDK build files then add a uses-feature tag in the AndroidManifest to filter out devices that don't have OpenCL support in a similar manner that one handles OpenGL ES version filtering. No need for anything more than this / no software OpenCL support necessary... Just a uses-feature tag and easy library alias / connection to the native build process. I suppose one could even request versions and profiles too in the manifest filter tag. IE they don't need to support a public API, but just make it easy to link to the library if a given device supports it. There will be plenty of Java bindings available. I'm sure they spent far more effort than the above to cripple it on the Nexus devices.
I assume JOCL is pointed at:
/system/lib/libopencl.so
Since you were quite active in the little Android issue for CL that got closed down in August I'd be glad to pick your brain offline and discuss some of the points I'll be making about the situation. As far as audiences go it should get some word out on the situation. Showing working demos is important too when one is trying to talk up how cool it is to do GPU compute across the desktop and Android from a shared Java codebase that doesn't require mods for each platform! Yep.... Almost there...