Summary: | Device specific JOCL dynamic library look-up on Android | ||
---|---|---|---|
Product: | [JogAmp] Jocl | Reporter: | Xerxes Rånby <xerxes> |
Component: | opencl | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | founder |
Priority: | --- | ||
Version: | 1 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
6be41a8e457ec2881f4ce351395ba84748a737b6
51bb8b2259e8eae9f62ec7202e8b7eb934a44c85
|
Workaround: | --- | ||
Bug Depends on: | |||
Bug Blocks: | 863 |
Description
Xerxes Rånby
2013-07-03 16:38:46 CEST
https://developer.qualcomm.com/comment/6087#comment-6087 Some nexus 4 devices got OpenCL in: /system/lib/libOpenCL.so I'm working with the ODROID-XU Android development board. It uses an Exynos 5410 SoC w/ PowerVR SGX544MP3 GPU supporting OpenCL 1.1 EP. http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=G137510300620 The driver is located here: /system/vendor/lib/libPVROCL.so I have initially tested it via modifying the aopencl project mentioned in reply #1 above. I assume this is the general location for other PowerVR GPU OpenCL drivers. I'm now taking a look at getting this working with JOCL. (In reply to comment #2) > I'm working with the ODROID-XU Android development board. It uses an Exynos > 5410 SoC w/ PowerVR SGX544MP3 GPU supporting OpenCL 1.1 EP. > > http://www.hardkernel.com/renewal_2011/products/prdt_info. > php?g_code=G137510300620 > > The driver is located here: > /system/vendor/lib/libPVROCL.so > > I have initially tested it via modifying the aopencl project mentioned in > reply #1 above. I assume this is the general location for other PowerVR GPU > OpenCL drivers. I'm now taking a look at getting this working with JOCL. The JOCL JNI Lib loader is currently located in com.jogamp.opencl.JOCLJNILibLoader The best way to resolve this bug is to move the implementation into a new class com.jogamp.opencl.CLDynamicLibraryBundleInfo and use the DynamicLibraryBundle helper class provided by Gluegen. http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/com/jogamp/common/os/DynamicLibraryBundle.html http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/com/jogamp/common/os/DynamicLibraryBundleInfo.html I suggest to make JOCL library and symbol look-up similar to how we do dynamic library symbol look-up inside multiple librarys for the JOGL project. You may take a look at the com.jogamp.opengl.GLDynamicLibraryBundleInfo implementation to see how we prefer to do dynamic library loading and symbol look-up inside the JogAmp projects. Bug 773 - Device specific JOCL dynamic library look-up on Android - Part 1/2 Use DynamicLibraryBundleInfo w/ alternative native library names, drop manual coding of loading and binding, i.e. JOCLJNILibLoader. After trying opencl native libs (and failing), try GL libs .. We use a manual impl. to CL's 'clGetExtensionFunctionAddress' similar to JOAL, JOGL ... Part 2/2 would be to add a Android test activity (jocl test) similar to JOGL's test activities and let it show some JOCL information .. Anybody up to the task ? Me off till Tuesday .. CLDynamicLibraryBundleInfo: Add libPVROCL.so lookup if Android .. .. forgot that detail. |