フィルターのクリア

gpuArray not working in matlab!

19 ビュー (過去 30 日間)
Dariosh
Dariosh 2014 年 11 月 18 日
コメント済み: Dariosh 2015 年 8 月 18 日
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
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.
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 日
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 日
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 日
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

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by