gpu Error: CUDA driver found, but returned an error. Error returned was:

3 views (last 30 days)
I am attempting to use the parallel processing toolbox. I have a NVIDIA GeForce GTX 660M 512Mb GPU running on macOS 10.13.3. When I try to select a gnu device, I get the following error
>> gpuDevice
Error using gpuDevice (line 26)
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 CUDA driver was found, but the function 'cuDriverGetVersion' returned an error. The error returned was:
However, there is no error that is being returned. It is just blank. I have just installed the CUDA toolkit and the latest drivers for MacOSx. I have restarted Matlab and the machine in between installs.
  1 Comment
Joss Knight
Joss Knight on 2 Jun 2018
I don't fully understand the Mac drivers, but I do know you have to install both a CUDA driver and a kernel driver. How did you install your driver? Through the System Preferences or through the NVIDIA driver downloads page?

Sign in to comment.

Answers (1)

DB
DB on 4 Jun 2018
Update, I found a solution to this problem on the NVIDIA development forum:
https://devtalk.nvidia.com/default/topic/1025945/cuda-setup-and-installation/mac-cuda-9-0-driver-fully-compatible-with-macos-high-sierra-10-13-error-quot-update-required-quot-solved-/
This solution worked for me.

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!