gpuArray not working in matlab!

I have matlab 2014b running on my Ubuntu 14.04 LTS 64bit, Nvidia and CUDA (6.5) drivers are the newest. When I use gpuArray I get the following error: "Error using gpuArray The CUDA runtime failed to initialize correctly. This can occur with some older CUDA drivers."
I tried everything but nothing helped. Please help me with this matlab bug.

댓글 수: 3

Michal
Michal 2014년 12월 1일
I can confirm that.
Same problem with MATLAB R2014b on Ubuntu 14.04 with default nvidia-331 proprietary driver.
Looks like MATLAB r2014b does not support Ubuntu 14.04!!??
What does
parallel.internal.gpu.CUDADriverVersion
return? Also, could you try running
version -modules
and posting any lines that match libcuda.so.
Dariosh
Dariosh 2015년 8월 18일
The commands "parallel.internal.gpu.CUDADriverVersion" and "version -modules" is not possible to run on a system with MCR only. Linux server 64-bit without any x-server og display manager.

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

답변 (3개)

Zachary Taylor
Zachary Taylor 2014년 12월 11일

0 개 추천

I had a similar issue after ubuntu updated to the nvidia-331 driver today. However the issue went away after I ran matlab with sudo once. I'm guessing it needed permission to modify a file after the driver update.
Dariosh
Dariosh 2014년 12월 12일

0 개 추천

The problem solved by removing and reinstalling the CUDA driver. It is working now. No changes in driver and it is the same driver.
parallel.internal.gpu.CUDADriverVersion: ans = 340.29
Thanks!
TJ
TJ 2015년 1월 21일

0 개 추천

make sure you have the paths set properly in your .bashrc file (or similar .cshrc file). export CUDA_HOME=/usr/local/cuda export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 PATH=${CUDA_HOME}/bin:${PATH} export PATH

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

태그

질문:

2014년 11월 18일

댓글:

2015년 8월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by