GPU CUDA problems: CUDA_ERROR_UNKNOWN

조회 수: 18 (최근 30일)
Thomas Hansen
Thomas Hansen 2015년 5월 26일
답변: bai yang 2022년 2월 17일
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
Joss Knight
Joss Knight 2015년 5월 28일
What version of MATLAB are you using?

댓글을 달려면 로그인하십시오.

답변 (7개)

Ashish Gudla
Ashish Gudla 2015년 5월 27일
편집: Ashish Gudla 2015년 5월 27일
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
hongshaorou
hongshaorou 2018년 3월 15일
thanks,I am trying to solve.

댓글을 달려면 로그인하십시오.


Wajahat
Wajahat 2015년 12월 3일
Try starting matlab with sudo:
>> sudo /usr/local/MATLAB/R2014a/bin/matlab -desktop

Douglas
Douglas 2015년 7월 18일
편집: Douglas 2015년 7월 20일
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.

Yue Bai
Yue Bai 2017년 8월 21일
I met the same problem, solved with restart computer

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?

Yuya Kodama
Yuya Kodama 2020년 11월 20일
In my environment, everything from R2020b to R2016a had the same error with no gpu available.
The GPU is Tesla K80 * 2 and the OS is Ubuntu 18,04.
When I checked, nvidia-smi was OK, but even python tensorflow could not call the GPU.
The reason was that my predecessor had left behind a blacklist.conf configuration file with a fixed driver version.
So, all drivers could not be loaded by modprove.
Therefore, I think that the dependencies were broken with the version upgrade.

bai yang
bai yang 2022년 2월 17일
I solved this problem with run as administrator. You can just have a try.

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by