gpuArray not working in matlab!
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
Edric Ellis
2014-12-1
What does
parallel.internal.gpu.CUDADriverVersion
return? Also, could you try running
version -modules
and posting any lines that match libcuda.so.
回答(3 个)
Zachary Taylor
2014-12-11
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.
0 个评论
TJ
2015-1-21
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
0 个评论
另请参阅
类别
在 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!