CUDA 10 supported with MATLAB 2017b
7 views (last 30 days)
Show older comments
Hi,
I am using MATLAB 2017b and have Cuda driver v10 installed in my machine. While running MATLAB when I use the command "gpuDeviceCount" it returns 0 and "gpuDevice" just throws and Exception lke the following
Error using gpuDevice (line 26) An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_UNKNOWN
I am trying to find out if there are some additional steps I need to do to enable my MATLAB to use the cuda driver. Also I am using Windows 10.
0 Comments
Answers (2)
Joss Knight
on 6 Nov 2018
Edited: Joss Knight
on 6 Nov 2018
There are a number of possible explanations for this.
One is that you are using a Volta or Turing card with an older MATLAB version that does not support it natively. You should make sure you have the latest Update for R2017b, take a look at this Answer for some other advice, and at this bug report.
A second is that your driver was improperly installed. Try checking the output of nvidia-smi to see if it's behaving correctly.
cd('C:\Program Files\NVIDIA Corporation\NVSMI');
!nvidia-smi
There are some other things we can try if this doesn't work.
0 Comments
Ranadeep Deb
on 6 Nov 2018
5 Comments
Walter Roberson
on 7 Nov 2018
Edited: Walter Roberson
on 8 Nov 2018
Or instead of an outright fault, it might be that the card is not supported in newer versions. Kepler, Maxwell, and Pascal GPUs were the only ones on mainstream support as of March 2018; I suppose Volta has been added since then. (Hmmm, Volta already existed at the time that article was written, so it is odd that they did not mention it.)
Joss Knight
on 7 Nov 2018
Edited: Joss Knight
on 7 Nov 2018
Well, you might indeed have hit upon it there Walter. Perhaps this user has a Fermi card, which would indeed not be supported by a CUDA 10 driver. Or a CUDA 9 one. Perhaps nvidia-smi is able to query the card via the kernel driver, but the CUDA driver cannot be used. I fully accept that this is a spin on the backwards compatibility story I'd forgotten about (i.e. drivers are not backwards compatibile to architectures for which NVIDIA has dropped support).
See Also
Categories
Find more on Get Started with GPU Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!