error with gpuarray transformation

8 ビュー (過去 30 日間)
AA
AA 2014 年 12 月 18 日
コメント済み: AA 2014 年 12 月 21 日
>> 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 Center および File ExchangeGPU Computing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by