Renderscript runtime

49 views
Skip to first unread message

Dominik Grewe

unread,
Apr 18, 2012, 7:26:15 AM4/18/12
to android-platform
Hi,

I'm looking for more information on the Renderscript runtime,
specifically the part that distributes the work across multiple
processors. I can't find any information on the web and I also
couldn't find much information in the Android source code.

I tried to follow the calls resulting from a forEach from Java to JNI
but I get stuck in the file "android_renderscript_RenderScript.cpp".
There are 2 calls to "rsScriptForEach" but I can't find a definition
of that function (used grep on the entire source code). Is this part
maybe not open source?

Does anyone have more information on this?

Thanks
Dominik

Xiao-Feng Li

unread,
Apr 24, 2012, 9:02:10 PM4/24/12
to android-...@googlegroups.com

You should be able to find the info in source code with libRS.
Specifically it is in frameworks/base/libs/rs/rsContext.cpp:
Context::initContext().

Thanks,
xiaofeng

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

--
http://people.apache.org/~xli

Dominik Grewe

unread,
May 1, 2012, 4:23:46 PM5/1/12
to android-platform
Thanks very much for the pointer. That's indeed what I've been looking
for. The interesting stuff seems to be in the "driver" subdirectory.

Cheers
Dominik

On Apr 25, 2:02 am, Xiao-Feng Li <xiaofeng...@gmail.com> wrote:
> On Wed, Apr 18, 2012 at 7:26 PM, Dominik Grewe
>
Reply all
Reply to author
Forward
0 new messages