Need help with executing program

2 ビュー (過去 30 日間)
Ali Najem
Ali Najem 2020 年 5 月 11 日
コメント済み: Walter Roberson 2020 年 5 月 11 日
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.

採用された回答

Walter Roberson
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 件のコメント
Ali Najem
Ali Najem 2020 年 5 月 11 日
Thank you so much, sir, for your prompt reply.
Now because of the GPU coder Toolbox is not available for a student !
Hence, I will try the first approach.
so, if you have an example to do so I will be so grateful
yours sincerely.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by