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

조회 수: 19 (최근 30일)
Octa
Octa 2013년 7월 6일
답변: David Huang 2022년 1월 24일
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
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 7월 8일
Not sure if the function existed in R2010a. What do you get when you run "which gpuArray"?

댓글을 달려면 로그인하십시오.

답변 (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