Error:Undefined function or method 'gpuArray' for input arguments of type 'uint8'

7 次查看(过去 30 天)
When i used gpuArray while coding,
originalI = imread('cameraman.tif');
se = strel('disk',5);
erodedI = imerode(gpuArray(originalI),se);
figure, imshow(originalI), figure, imshow(erodedI)
It resulted in the following error
Undefined function or method 'gpuArray' for input arguments of type 'uint8'
What is the reason for this? Please tell me.
I am using MATLAB 2010a.
Thanks in advance

回答(3 个)

Sean de Wolski
Sean de Wolski 2013-7-8
gpuArray and GPU support was released in R2010b. If your company/university's SMS subscription is up to date, you can download the newest release at no additional cost.

Ahmed
Ahmed 2013-7-6
gpuArray is a function of the 'Parallel Computing Toolbox'. Without this toolbox, the function can not be called. The command 'ver' lists all installed toolboxes.
  1 个评论
Octa
Octa 2013-7-8
I have Parallel Computing Toolbox. As you told when entering the command ver i got
Parallel Computing Toolbox Version 4.3 (R2010a)
So it is installed. Please tell me if i were doing some other mistake?

请先登录,再进行评论。


David Huang
David Huang 2022-1-24
I have the same question:
Undefined function 'gpuArrray' for input arguments of type 'double'.
my Parallel Computing Toolbox version is Version 7.4 (R2021a)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by