Search code examples
androidsignal-processingrenderscripthexagon-dsp

Can Renderscript code be compiled to and run on Snapdragon's Haxagon DSP?


Renderscript is claimed to support "different types of processors such as the CPU, GPU or DSP." Now, probably the most popular DSP these days in the Android world is Hexagon present in Snapdragon SOCs. Can Renderscript code be made to run on Hexagon at all? If so, how to do it and what are the limitations?

UPDATE

regarding my hitherto investigation of the issue - there is no documentation nor examples available, so reverse engineering Qualcomm drivers seems like logical next step. For obvious reasons, I thought I'd ask first.


Solution

  • You can't force RenderScript to run on any particular processor, so there is really nothing you can do here (unless you are going to write a Hexagon compiler + driver). As far as the existence of a Hexagon driver/compiler, none of the Nexus devices currently ship with Hexagon support for RenderScript, although each of them does have GPU support for RenderScript.