error with gpuarray transformation

8 次查看(过去 30 天)
>> A3 = gpuArray(q);
Error using gpuArray
Only full arrays of fundamental numeric types or logical types are
supported for GPU arrays.
i get the following error message. q is a cell array consisting of a matrices with many thousand rows.
my gpu is a cuda card with 4 gigabytes.
thanks

采纳的回答

Matt J
Matt J 2014-12-18
编辑:Matt J 2014-12-19
q is not allowed to be a cell array. It must be a matrix or n-dimensional array. And it must be non-sparse.
  6 个评论
Matt J
Matt J 2014-12-19
All operations on A{i} will be done on the GPU.
AA
AA 2014-12-21
A = cellfun(@gather, a, 'UniformOutput', false) and this turns it back

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by