CUDA 10 supported with MATLAB 2017b
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Joss Knight
2018-11-6
编辑:Joss Knight
2018-11-6
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 个评论
Ranadeep Deb
2018-11-6
5 个评论
Walter Roberson
2018-11-7
编辑:Walter Roberson
2018-11-8
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
2018-11-7
编辑:Joss Knight
2018-11-7
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).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!