using the graphics processor

395 views
Skip to first unread message

ajay

unread,
May 8, 2011, 1:05:42 PM5/8/11
to android-ndk
Hi,

I would like to know how to use the graphics processor to do
calculations in C/C++.



Thanks And Regards,
Ajay

mic _

unread,
May 8, 2011, 1:29:38 PM5/8/11
to andro...@googlegroups.com
What do you mean by "calculations"? General-purpose computing (like OpenCL or CUDA)? That's not available on any Android devices that I know of,

If you just mean that you want to draw stuff from native code, then take a look at the examples that come with the NDK. For example: bitmap-plasma, san-angeles and hello-gl2.

/Michael


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Zoran Angelov

unread,
May 8, 2011, 4:32:01 PM5/8/11
to andro...@googlegroups.com
Hi ajay,
you can use opengl es 2.0 glsl language to use device gpu to perform calculations.
I've using it in one of my experimental project of computer vision, actually it is SURF detector only (fast hesian detector part).
If you want you can take a look at the source code here: http://code.google.com/p/lib-ucv/source/browse/trunk/ucv/lib_ucv/src/baldzarika/ucv/gles/hessian_detector.cpp .
There is also support classes for dealing with opengl objects (fbo, textures and shaders).
The code was working on device with qualocomm's adreno 200 gpu (zte racer).

mcclanahoochie

unread,
May 8, 2011, 6:07:47 PM5/8/11
to android-ndk
AccelerEyes is developing a mobile version of their Jacket SDK
http://www.accelereyes.com/products/mobile
It's a matrix library for mobile phones that uses the GPU for
computation.
~Chris

ajay

unread,
May 9, 2011, 2:20:24 PM5/9/11
to android-ndk
hi,

I would like to make use of the gpu to amke gneral multiplication
and division on it.

Thanks and regards,
Ajay

On May 9, 3:07 am, mcclanahoochie <mcclanahooc...@gmail.com> wrote:
> AccelerEyes is developing a mobile version of their Jacket SDKhttp://www.accelereyes.com/products/mobile
> It's a matrix library for mobile phones that uses theGPUfor
> computation.
> ~Chris
>
> On May 8, 1:05 pm, ajay <mna...@gmail.com> wrote:
>
>
>
> > Hi,
>
> >    I would like to know how to use the graphics processor to do
> > calculations in C/C++.
>
> > Thanks And Regards,
> > Ajay- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages