Wednesday, June 8, 2011

[android-developers] Re: Where is the Renderscript running on in Honeycomb?

Thank you for the reply, again. And again I have a couple of question.
I don't want my question to bother you. If so, I'm sorry.

Anyway, Here are my questions.

> > 1. DoesRenderscript"for not only Compute but also Graphics" run on
> > the CPU only?
>
> Rendering is done using the GPU.'

There is two kinds of Renderscript. It is represented to the
RenderScript Context and RenderscriptGL Context.
Is it ture that Native Renderscript from the both context is done on
the CPU and only rendering is done using the GPU?


>
> > 2. On my previous test of checking CPU Usage by "top" command, it
> > showed thatrenderscriptonly had almost 50% of CPU Usage.
> >    Does It mean that theRenderscriptcan only run on one single
> > core, not multiple cores, for now? And in future, can it run on CPUs,
> > GPU and DSP including CPU cores?
>
> Renderscriptcan run on multiple cores if you use the foreach instruction.

The HelloCompute Example from SDK use rsForEach instruction.
But It does not seem that the Renderscript is not running on multiple
cores.
Because "top" command show that CPU Usage of HelloCompute process is
not over 50%
when invoke_filter() function repeatly is called.
So, Running renderscript on multiple cores is not able FOR NOW?

>
> > 3. On runtime,Renderscriptdocument says that Bytecode is compiled to
> > machine code.
> >   For runtime compilation is possible, runtime compiler, compiling
> > bytecode to ARM CPU machine code, have to support.
> >   Who provide the compiler? Google or device vender(Samsung,
> > Motorolla, Sony ..)?
>
> The compiler is LLVM.

Does It means that LLVM-Backend compile(translate) bytecodes to ARM
machine code at runtime?

Best regars,
Uison.

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

No comments:

Post a Comment