问题
I am researching RenderScript in an university project. We wanted to find the scheduler that selects where the RenderScript code will run (on the CPU? The GPU? A DSP?) and study how it makes this choice.
The problem is, we couldn't find the source code of anything related to a scheduler. In fact, we couldn't find a single reference to the term "GPU" in the source code.
This is what we found about RenderScript in the Android source:
- The RenderScript runtime: https://android.googlesource.com/platform/frameworks/rs/
- The RenderScript Java runtime: https://android.googlesource.com/platform/frameworks/base/+/master/rs/
- The offline compiler: https://android.googlesource.com/platform/frameworks/compile/slang/
- The online JIT compiler: https://android.googlesource.com/platform/frameworks/compile/libbcc/
The question is, did we miss something? Are there any other renderscript-related source codes that we didn't list above? Because we are not finding anything related to a scheduler in these sources.
来源:https://stackoverflow.com/questions/31294624/where-is-the-renderscript-source-code