why using gpu.Array.zeros I have error Undefined variable "parallel" or class "parallel.gpu.gpuArray.zeros" ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
the line of the code is: gpu = gpuDevice(); Z = parallel.gpu.gpuArray.zeros(8192, 1); Undefined variable "parallel" or class "parallel.gpu.gpuArray.zeros".
0 comentarios
Respuesta aceptada
Jill Reese
el 2 de Abr. de 2013
What version of MATLAB are you using?
In R2010b-R2012a releases, the GPU object was named parallel.gpu.GPUArray. In those releases you would create an array of all zeros on the GPU using:
z = parallel.gpu.GPUArray.zeros(8192,1);
In R2012b, the GPU object was renamed to gpuArray, so in R2012b and onward you would create the same array using this line of code:
z = gpuArray.zeros(8192,1);
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Biological and Health Sciences en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!