MATLAB Answers

GPU CUDA problems: CUDA_ERROR_UNKNOWN

124 views (last 30 days)
Thomas Hansen
Thomas Hansen on 26 May 2015
Commented: hongshaorou on 15 Mar 2018
Hi I use a GeForce GTX 980 with Ubuntu 15.04, but I have trouble using the GPU from within Matlab. When i run gpuDevice I get the following error " >> g=gpuDevice Error using gpuDevice (line 26) An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_UNKNOWN "
Can anyone help me figuring out what the problem is?

  1 Comment

Joss Knight
Joss Knight on 28 May 2015
What version of MATLAB are you using?

Sign in to comment.

Answers (5)

Ashish Gudla
Ashish Gudla on 27 May 2015
Edited: Ashish Gudla on 27 May 2015
It is possible that the CUDA driver might be causing the error message. Do you have the latest drivers installed? If not, install the latest drivers and verify if you still see the error message.
You can get the drivers from:

  1 Comment

hongshaorou
hongshaorou on 15 Mar 2018
thanks,I am trying to solve.

Sign in to comment.


Wajahat
Wajahat on 3 Dec 2015
Try starting matlab with sudo:
>> sudo /usr/local/MATLAB/R2014a/bin/matlab -desktop

  0 Comments

Sign in to comment.


Douglas
Douglas on 18 Jul 2015
Edited: Douglas on 20 Jul 2015
It seems to be a permission error. I've started matlab as root and, in my case, the problem was solved.
To run as normal user, see this:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1361207
You have to install nvidia-modprobe package.

  0 Comments

Sign in to comment.


Yue Bai
Yue Bai on 21 Aug 2017
I met the same problem, solved with restart computer

  0 Comments

Sign in to comment.


SATYAM KUMAR CHOURASIYA 16MCA1038
Error using parallel.gpu.CUDADevice.hBuild
An unexpected error occurred trying to retrieve CUDA device properties. The CUDA error was:
CUDA_ERROR_UNKNOWN
my gpu device having computing capacity of 2.1 ,
can u elaborate this is the reason of this issue or something else?

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags


Translated by