I am currently using Matlab 2019b version. How do I enable the GPU on my laptop for certain image processing applications like Fuzzy Connected adaptive segmentation(Not deep learning where we get a promt if we want to switch from CPU to the GPU)?

조회 수: 6 (최근 30일)
The system is becoming too slow when I tried to execute the Fuzzy connected adaptive segmentation algorithm and it kept on executing without an output for almost 8hrs at a stretch for an image size of approx. 1024x1024.
What are the changes to be made in the code ( such as using specific keywords) to ensure that the code executes on the GPU?
I am using a Dell laptop, i7 and the hardware configuration says there are two GPUs? How do I enable them?
Thanks in advance

채택된 답변

Manish Mahalwal
Manish Mahalwal 2020년 8월 20일
Hi Sushma,
As the first step, to run your code on the GPU, you need to have the Parallel Computing Toolbox installed.
You need to use the gpuArray to transfer your data from CPU to GPU. Now, not all the image processing functions accept data from the GPU. The list of the supported functions is available here.
Thirdly, to transfer data back from the GPU to CPU, you can use the gather function.
The results may slightly vary from what you would have got when you execute the same code on CPU completely.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
  댓글 수: 5
Sushma TV
Sushma TV 2020년 9월 18일
Further on the same doubt of being able to use the GPU on my laptop..I have an AMD Radeon R7 M270 GPU..Is it possible to use this on Matlab?
Manish Mahalwal
Manish Mahalwal 2020년 9월 18일
Unfortunately AMD GPUs cannot be used to manipulate gpuArray objects. Like Jason mentioned only nVidia GPUs are supported. The types supported by MATLAB are available here.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by