Need help with executing program
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi everyone,
I hope you doing well in good health and high spirits.
How can I run the matlab programs using GPU ?
This is my laptop specification:
1) Mcroprocessor: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
2) Ram: 8GB
3) Graphic device 1: NVIDIA GeForce MX150
4) Graphic device 2: Intel(R) UHD Graphics 620
what shuold i do exactly to run any program in matlab directly in GPU mode?
Many Thanks in advance.
댓글 수: 0
채택된 답변
Walter Roberson
2020년 5월 11일
You cannot run MATLAB programs directly on the GPU.
You can use the Parallel Computing toolbox, and gpuArray(), and apply operations to the gpuArray, and finally gather() the array to get back the result.
Or you can use the GPU Coder Toolbox to generate custom kernels for GPU operation. This requires MATLAB Coder Toolbox as well; https://www.mathworks.com/support/requirements/gpu-coder.html so this is a fairly expensive route.
Note: GPU Coder is not available for Student or Home licenses
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!