gpuArray of variable size for codegen
显示 更早的评论
Hi,
I'm trying to figure out the actual potential of the codegen capabilities on the GPU. In particular there are two points that I are not addressed explicitly in the online documentation (or I couldn't find the info).
*) First, it seems that the gpuArray type cannot be used as input. This is surprising, as it reduces drastically the applicability of mex functions generated with codegen... Is there a way to create mex files that accept gpuArray vectors as rhs?
*) Second, codegen throws a warning when input arguments of matrices that will be sent to the GPU (by a coder.gpu.kernelfun pragma inside the .m file) are declared to be of variable size using coder.typeof(). Again, a significant restriction on the usability of codegen.... Am I missing something here? Is there a way to trick codegen into accepting dynamically sized arrays as input for GPU processing?
thanks! Daniel
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Execution Speed 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!