Matlab cannot access my gpu Cuda Device

30 ビュー (過去 30 日間)
Ren
Ren 2019 年 7 月 25 日
コメント済み: Ren 2019 年 7 月 26 日
Colleagues, hello!
I am using matlab 2018b with cuda 9.1 installed. I tried to try the command gpuDeviceCount returns 1 and when I used the command gpuDevice to get the properties of the CUDADevice , I got :
There is a problem with the graphics driver or with this GPU device. Be sure that you have a supported GPU and that the
latest driver is installed.
Caused by:
The graphics driver was found, but it is too old. The graphics driver on your system supports CUDA version 7.5. The
required CUDA version is 9.1 or greater.
When i used command system('nvcc --version') I got
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:12_Central_Daylight_Time_2017
Cuda compilation tools, release 9.1, V9.1.85
ans =
0
Then I used the command nvcc --version but I got error Undefined function or variable 'nvcc'.
i dont get the prb here why matlab 2018b does not recognise NVIDIA GPU Card in my laptop when the supported cuda toolkit 9.1 is installed !!!!
I am working under windows 7 and my graphic cards are Intel (R) HD Graphics 520 and NVIDIA GeForce 920M.

採用された回答

Edric Ellis
Edric Ellis 2019 年 7 月 26 日
編集済み: Edric Ellis 2019 年 7 月 26 日
nvcc is part of the CUDA toolkit, and in fact you do not need any version of that to successfully use gpuArray in MATLAB. It is just the CUDA driver that you need, that's what the error message is complaining about. To get the latest CUDA driver, you need to go here: https://www.nvidia.com/Download/index.aspx?lang=en-us and get the latest driver for your system. (It's generally the right thing to do to get the latest driver available for your system. You need the toolkit portion if you wish to build MEX functions that access mxGPUArray functionality).
  3 件のコメント
Edric Ellis
Edric Ellis 2019 年 7 月 26 日
Well, providing gpuDevice works correctly, I wouldn't worry too much about parallel.internal.gpu.CUDADriverVersion - that's a debugging tool that is not used by the gpuArray implementation.
Ren
Ren 2019 年 7 月 26 日
thank you! useful

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

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