I cannot find documentation on how to check if RenderScript really parallelizes the code. I would like to know if a processor or GPU is being used, and the number of streams sent.
The only thing I found was an error report: http://code.google.com/p/android/issues/detail?id=28662
The author mentions that installing rsForEach in a script led to its serialization, pointing to the following debug output:
01-02 00:21:59.960: D/RenderScript(1256): = 0 0x0 01-02 00:21:59.976: D/RenderScript(1256): = 1 0x1
I tried to find a similar line in LogCat, but I could not find a match.
Any thoughts?
Update: Actually, I seem to understand this. It seems to me that my LogCat foo is not as good as it should be. I filtered out the debug output according to my application information and found the following line:
02-26 22:30:05.657: V/RenderScript(26113): rsContextCreate dev=0x5cec0458 02-26 22:30:05.735: V/RenderScript(26113): 0x5d9f63b8 Launching thread(s), CPUs 2
source share