error with gpuarray transformation

조회 수: 7 (최근 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 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