PrashantChauhan / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

Android support #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Does aparapi work on Android devices?

Original issue reported on code.google.com by mictadlo on 10 May 2013 at 4:18

GoogleCodeExporter commented 8 years ago
Android support is somewhat 'out of bounds' for Aparapi.  Dalvik is a different 
beast than a JVM.  However, GSS Mahadevan has reported success and recently 
demo'd Aparapi ported to Android.

This obviously only works on devices with OpenCL runtime/compiler.  At present 
this seems to be Nexus 4 and 10.

Here is a link to Mahadevan's work.  Pretty impressive.  

http://mahadevangorti.blogspot.in/2013/03/nexus-4-is-running-with-opencl-program
s.html

Original comment by frost.g...@gmail.com on 10 May 2013 at 4:24

GoogleCodeExporter commented 8 years ago
I would think that Aparapi JTP mode would work on any Android device?

This seems an obvious and from my standpoint, highly desirable 
feature...Aparapi + OpenCL on Android.

It would be nice if someone would contribute the necessary changes to make this 
happen :) Even if we would have to start relying on other project dependencies, 
such as Apache Unsafe...

Original comment by ryan.lam...@gmail.com on 10 May 2013 at 11:14

GoogleCodeExporter commented 8 years ago
Would it possible to merge GSS Mahadeva together with the original Aparapi 
project?

Some people are almost successfully to ported CyanogenMod/Android to Raspberry 
Pi
( http://www.theverge.com/2012/8/1/3212236/android-4-0-ics-raspberry-pi-port ). 
There also few alternatives to Raspberry Pi which better GPU and CPU ( 
http://www.efytimes.com/e1/creativenews.asp?edid=84368 ). Some of the 
alternatives devices are shipped already with Android.

I watched "Raspberry Pi: Developing with Java Embedded Technology" ( 
https://www.youtube.com/watch?v=7DSp77OxzLg ) and just wondering whether 
Aparapi is able to run with Java SE Embedded on ARM?

Original comment by mictadlo on 12 May 2013 at 7:06

GoogleCodeExporter commented 8 years ago
I agree JTP should work on Dalvik.  

The new lambda stuff is unlikely to work (I don't think Dalvik supports 
MethodHandles)

GSS Hahadevan's work is also on googlecode (https://code.google.com/p/aopencl/) 
 I have browsed the code.  Seems like a fairly old branch of Aparapi with some 
JNI changes.   I have been exchanging emails with the author and would like to 
track the opportunities, but not sure we need to pull his changes into the 
trunk. 

We could do this, but probably don't need to do this yet. 

I am intrigued by the Raspberry Pi question.  Of course the Pi (I am a proud 
owner and will one day try this port for fun ;) ) does not have an OpenCL 
capable runtime, so would only be able to support JTP.   If a CPU based OpenCL 
runtime were present, this might indeed be interesting. 

Is anyone aware of OpenCL runtime for Raspberry Pi?

Gary

Original comment by frost.g...@gmail.com on 12 May 2013 at 5:11