error with gpuarray transformation

8 visualizzazioni (ultimi 30 giorni)
AA
AA il 18 Dic 2014
Commentato: AA il 21 Dic 2014
>> 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

Risposta accettata

Matt J
Matt J il 18 Dic 2014
Modificato: Matt J il 19 Dic 2014
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 Commenti
Matt J
Matt J il 19 Dic 2014
All operations on A{i} will be done on the GPU.
AA
AA il 21 Dic 2014
A = cellfun(@gather, a, 'UniformOutput', false) and this turns it back

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by