I implemented an algorithm in Single-Source. Now, I want to decrease my algorithm's processing time with reduction.
Can reduction kernels be called from Single-Source in RenderScript?
I implemented an algorithm in Single-Source. Now, I want to decrease my algorithm's processing time with reduction.
Can reduction kernels be called from Single-Source in RenderScript?
In short, no. From the Renderscript documentation (bold is mine):
However, I think you may also be confused about what a reduction kernel is. A reduction kernel is one which takes an input
Allocation
and outputs a single value (such as a minimum or maximum, the sum, etc.) It is not the same as optimizing your kernel, which is what it sounds like you are trying to do.