fhucho
fhucho

Reputation: 34560

Can Android renderscript run on GPU?

Are there any Android devices where renderscript executes on the GPU instead of the CPU, or is this something not yet implemented anywhere?

Upvotes: 15

Views: 6462

Answers (6)

lxgr
lxgr

Reputation: 3797

Currently, only the Nexus 10 seems to support Renderscript GPU compute.

Upvotes: 1

slezadav
slezadav

Reputation: 6141

As of JellyBean 4.2 there is a direct GPU integration for renderscript. See this and this.

Upvotes: 9

Massycat
Massycat

Reputation: 551

Currently the compute side of Renderscript will only run on the CPU:

For now, compute Renderscripts can only take advantage of CPU cores, but in the future, they can potentially run on other types of processors such as GPUs and DSPs.

Taken from Renderscript dev guide.

The graphics side of Renderscript sits on top of OpenGL ES so the shaders will run on the GPU.

ARM's Mali-T604 GPU will provide a target for the compute side of Renderscript (in a future Android release?) (see ARM Blog entry).

Upvotes: 2

Dominik Grewe
Dominik Grewe

Reputation: 21

I think this may depend on whether you're doing graphics or compute operations. The graphics operations will likely get executed on the GPU but the compute operations won't as far as I understand.

When you use the forEach construct the computation will run in multiple threads on the CPU, not the GPU (you can see this in the ICS source code). In future releases this may change (see https://events.linuxfoundation.org/slides/2011/lfcs/lfcs2011_llvm_liao.pdf) but I haven't seen any announcements.

Upvotes: 1

yoah
yoah

Reputation: 7230

The design of RenderScript is so that it runs on the GPU. This was the main purpose of adding the new language. I assume there are devices where it runs on the CPU due to lack of support, but on most devices it runs on the GPU

Upvotes: 1

Jared
Jared

Reputation: 1469

I cannot confirm with any official documentation for Google, but I work with RenderScript all day every day and each time I run it, I see the logcat report loading drivers for graphics chips in my devices, most notably Tegra 2. Google has really lagged in documenting RenderScript, and I would not at all be surprised if they simply havn't corrected this omission in their discussion.

Upvotes: 3

Related Questions