How do I find the GPU version in MATLAB?

9 ビュー (過去 30 日間)
Nick Tsui
Nick Tsui 2012 年 6 月 22 日
コメント済み: Abdelrahman Anis 2021 年 7 月 20 日
I am just wondering how I find GPU version/info in MATLAB. Is there a MATLAB function doing so? Thanks a lot.

採用された回答

Thomas
Thomas 2012 年 6 月 22 日
Use the function gpuDevice.
gpuDevice
If you do not have a cuda enabled GPU device the function will throw an error.
  6 件のコメント
Jason Ross
Jason Ross 2021 年 7 月 19 日
@Abdelrahman Anis -- the "special care" that I was specifically referring to was that in 2012, nVidia did not have great support for their cards being usable/finadble when using Remote Desktop -- it was pretty restricive and you had to use something like VNC in many cases. At some point between 2012 and today, nVidia added support for Remote Desktop across their product line so there's not really as much "special care" needed any longer. Note that this was for the specific case of the remote machine being Windows.
For Linux, if you connect to a host and an nvidia-smi shows your GPU, a MATLAB running on that system should be able to find the GPU. It should work if you start it in console/nodesktop mode (which I assume you are doing with MobaXTerm), or if you start a VNC session on the Linux host and start MATLAB in the VNC session.
Abdelrahman Anis
Abdelrahman Anis 2021 年 7 月 20 日
@Jason Ross Thank you!

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

その他の回答 (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