OpenCL on mobile devices

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenCL on mobile devices

Xerxes Rånby
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
This post was updated on .
Andoid
JogAmp gluegen-rt and JOCL release Android .apk files are available at:
http://jogamp.org/deployment/jogamp-current/apk/

The latest "nightly" testing Android .apk files are available at:
http://jogamp.org/deployment/archive/master/?C=M;O=D .../apk/

GNU/Linux... MeeGo, Tizen, Jolla, Ubuntu phone/touch
For GNU/Linux phones use OpenJDK in combination with the JogAmp JOCL jars.
http://jogamp.org/deployment/jogamp-current/jar/
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
This post was updated on .
In reply to this post by Xerxes Rånby
ARM MALI OpenCL SDK
http://malideveloper.arm.com/develop-for-mali/sdks/mali-opencl-sdk/

COPRTHR SDK
libcoprthr - An open-source OpenCL implementation for multicore x86_64 and ARM.
http://www.browndeertechnology.com/coprthr.htm
https://github.com/browndeer/coprthr.git

SteamComputing (@openclonarm) maintains an extensive list of OpenCL SDK:
http://streamcomputing.eu/knowledge/sdks/
Jim
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Jim
In reply to this post by Xerxes Rånby
I have got OpenCL Working on the nexus 10 writing all the NDK code myself but I wanted to check if anyone has tested the jocl examples?
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
Jim wrote
I have got OpenCL Working on the nexus 10 writing all the NDK code myself but I wanted to check if anyone has tested the jocl examples?
We have only tested the JOCL examples on desktop OpenCL implementations because the JogAmp JOCL maintainers do not access to any mobile OpenCL devices.

You can help out here:
Please post the source to your working NDK code examples under a free software license, it help to see if any Nexus 10 specific initialization has to be done.
Please try the current JogAmp JOCL .apk files on your Nexus 10 device. Most likely we fail to initialize OpenCL due to that JOCL looks for the OpenCL implementation in the wrong native library, JOCL currently expects the native library names to be the same compared to deskop OpenCL.
http://jogamp.org/deployment/archive/master/?C=M;O=D
http://jogamp.org/deployment/archive/master/gluegen_652-joal_415-jogl_942-jocl_766/apk/

Jim
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Jim
So I tried installing the jocl apk but an icon doesn't even show up on the deviece. I am guessing you need to install some of the other apks so I tried installing them all and then I got icons but none of them seemed to be opencl demos. Many of the demos crashed but some worked. One called Elektro worked for a while after displaying a pyramid of pyramids then crashed after displaying a very complex 3d fractal that looked like cauliflower (I'm guessing that is what it is).

I would post my own code but there is already others who have done so. Here is one basic example:
https://github.com/mattscar/opencl_device_test

basically you just have to load the driver using System.load.
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
This post was updated on .
Jim wrote
So I tried installing the jocl apk but an icon doesn't even show up on the deviece. I am guessing you need to install some of the other apks so I tried installing them all and then I got icons but none of them seemed to be opencl demos.
We currently provide an android launchers for JOGL and JOAL. An JOCL launcher can be implemented similar to the JOGL and JOAL activitys.
http://jogamp.org/git/?p=jogl.git;a=tree;f=src/test/com/jogamp/opengl/test/android
http://jogamp.org/git/?p=joal.git;a=tree;f=src/test/com/jogamp/openal/test/android

Jim wrote
Many of the demos crashed but some worked.
If you experience any issue using the 25-Jun-2013 2.0.2-rc12 .apk or later please file a bug-report:
http://jogamp.org/deployment/jogamp-current/apk/
https://jogamp.org/bugzilla/

Jim wrote
One called Elektro worked for a while after displaying a pyramid of pyramids then crashed after displaying a very complex 3d fractal that looked like cauliflower (I'm guessing that is what it is).
Demoscene Passivist's ElektronenMultiplizierer is our heavy OpenGL ES 2 GLSL stress test. It is known to take down some GPU driver implementations to its knees. ElektronenMultiplizierer is running an heavy ray-marching algorithm implemented using the fragment shader. You may want to check Demoscene Passivist's github and tumbler for more impressive visuals:
http://copypastaresearch.tumblr.com/
https://github.com/demoscenepassivist/SocialCoding

Jim wrote
I would post my own code but there is already others who have done so. Here is one basic example:
https://github.com/mattscar/opencl_device_test

basically you just have to load the driver using System.load.
Thank you for letting us know about mattscar's opencl_device_test.

We may need to make JOCL look at non-standard library names in order to resolve OpenCL library functions when in use on the first generation OpenCL mobile devices.

Example according to the aopencl project:
http://code.google.com/p/aopencl/
OpenCL are found in
/system/vendor/lib/egl/libGLES_mali.so
on Nexus 10 T604 based devices
and
/system/lib/libllvm-a3xx.so
for Nexus 4 Adreno 320 based GPU's

I have summarize these findings into a JOCL bug-report:
https://jogamp.org/bugzilla/show_bug.cgi?id=773
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
Ubuntu OpenCL drivers are provided for the Vivante GPU (Freescale i.MX6) boards:
http://streamcomputing.eu/knowledge/sdks/vivante-gpu/

World's first full function heterogeneous mini-HPC
https://community.freescale.com/docs/DOC-94464
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
JOCL & OpenCL on mobile devices info have been added to the JOCL FAQ:

https://jogamp.org/wiki/index.php/JOCL_FAQ#OpenCL_on_Mobile_ARM_SoC
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

blackrose
In reply to this post by Xerxes Rånby
I have got OpenCL Working on the nexus 10 writing all the NDK code myself but I wanted to check if anyone has tested the jocl examples????
ileatherjackets [url=http://www.ileatherjackets.co.uk/]ileatherjackets.co.uk[/url]
pmp course [url=http://www.pass4sure.com/test/pmp-certification-online.html]pmp course[/url]
bomber jackets [url=http://www.ileatherworld.com/tribute/harley-davidson-jacket.html]bomber jackets[/url]
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

Xerxes Rånby
Please post pictures/screenshots if you have managed to get the JogAmp JOCL test activities running on android.
We have only tested the JOCL examples recently on regular desktop computers.
We expect the JogAmp JOCL test activities to work on android if the device got a regular opencl library installed, yet we do not own any device where a regular opencl implementation is to be found.

Have you compiled your own libopencl using the NDK and then got it running?
If so, Congratulations!, you are then the first one to get JOCL running on Android!

If you have modified any of the JogAmp modules in order to get it working with your device then please add your changes to:
https://jogamp.org/bugzilla/show_bug.cgi?id=773
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

MichaelEGR
Greets,

Indeed I am really interested in getting JOCL to run on the ODROID-XU which is a PowerVR GPU. I notated the OpenCL driver location in the issue tracker for 773. I will open another forum thread for the ODROID-XU. I understand that Sven might have acquired the ODROID-XU recently as well since it is the only unfettered Android device with OpenCL access.

http://forum.jogamp.org/JOCL-on-the-ODROID-XU-Android-td4030220.html
Reply | Threaded
Open this post in threaded view
|

Re: OpenCL on mobile devices

MichaelEGR
Sony supporting OpenCL and providing a tutorial w/ native sample code...

http://developer.sonymobile.com/2013/10/29/boost-the-performance-of-your-android-app-with-opencl/ 

I assume the Xperia Z1 is now a device to look into that will be potentially safe when it is upgraded to 4.3. I think this is the first open support from an OEM I've seen regarding Android. I'm definitely going to get down and dirty with JOCL soon and troubleshoot the problems I've had thus far...