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)?
1 次查看(过去 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
0 个评论
采纳的回答
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.
The results may slightly vary from what you would have got when you execute the same code on CPU completely.
Some more info here: https://www.mathworks.com/help/images/image-processing-on-a-gpu.html
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
5 个评论
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 Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!