Is it possible to program GPU for Android

前端 未结 4 1147
一个人的身影
一个人的身影 2021-01-01 21:23

I am now programming on Android and I wonder whether we can use GPGPU for Android now? I once heard that Renderscript can potentially execute on GPGPU in the future. But I w

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 21:50

    Actually Renderscript Compute doesn't use the GPU at this time, but is designed for it.

    From Romain Guy who works on the Android platform:

    • Renderscript Compute is currently CPU bound but with the for_each construct it will take advantage of multiple cores immediately
    • Renderscript Compute was designed to run on the GPU and/or the CPU
    • Renderscript Compute avoids having to write JNI code and gives you architecture independent, high performance results
    • Renderscript Compute can, as of Android 4.1, benefit from SIMD optimizations (NEON on ARM)

    https://groups.google.com/d/msg/android-developers/m194NFf_ZqA/Whq4qWisv5MJ

提交回复
热议问题