android - Renderscript with rs_allocation array can't run on GPU -
my dev env follows:
device: nexus 5 android: 4.4.2 sdk tools: 22.6.1 platform tools: 19.0.1 build tools: 19.0.3 build target: level 19 min target: level 19
the problem when try put rs_allocation arrays in .rs file such as
rs_allocation[3] allocs
in .rs file, seems fine, it's compiles, java glue code generated, code runs correctly. found code end running in cpu instead of gpu (told cpu usage). if don't use rs_allocation array , use rs_allocation directly, code runs on gpu. i'm wondering if current limitation. or missing something? thank you.
yeah, not unexpected. depending on how allocations read, gpu drivers may have issues this. example, arrays of textures weren't supported on nv gpus cuda years--i think not until fermi. vary based on vendor, chip, , driver revision.
Comments
Post a Comment