MATLAB R2014a in Ubuntu 14.04 doesn't recognize NVIDIA GeForce GTX770

1 回表示 (過去 30 日間)
Fernando
Fernando 2014 年 8 月 14 日
コメント済み: Yelena Bagdasarova 2018 年 1 月 11 日
Hi,
I'm running MATLAB R2014a (with parallel computing toolbox) on Ubuntu 14.04, and I have a GeForce GTX770 GPU with computing capability 3.0, but MATLAB seems not to recognize it. The output of a couple of commands is
>> gpuDevice
Error using gpuDevice (line 26)
No supported GPU device was found on this computer. To learn more about supported GPU devices, see
www.mathworks.com/gpudevice.
>> parallel.internal.gpu.CUDADriverVersion
Error using parallel.internal.gpu.CUDADriverVersion>iLinuxDriverVersion (line 105)
Could not read version information from '/proc/driver/nvidia/version'.
Error in parallel.internal.gpu.CUDADriverVersion (line 15)
However, in the terminal I get
~$ lspci -vnn | grep VGA -A 12
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 770] [10de:1184] (rev a1) (prog-if 00 [VGA controller])
Subsystem: eVga.com. Corp. Device [3842:2774]
Flags: bus master, fast devsel, latency 0, IRQ 83
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=128M]
Memory at d8000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at fb000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nouveau
so the card is there. How can I make MATLAB recognize the card? Is it related to be using the 'Nouveau' driver instead of Nvidia's?
Thanks,
  1 件のコメント
kishore kumar
kishore kumar 2014 年 9 月 11 日
Where to find installation file for ubuntu 14.04

サインインしてコメントする。

採用された回答

Jill Reese
Jill Reese 2014 年 8 月 14 日
Yes, it is because you are using the "nouveau" driver. You need to get a compute driver from the NVIDIA website.
  2 件のコメント
Fernando
Fernando 2014 年 8 月 14 日
Thank you!
Yelena Bagdasarova
Yelena Bagdasarova 2018 年 1 月 11 日
This worked for me. I'm running ubuntu 16.04 (Xenial Xerus) on Lenovo-IdeaPad-Y510P. I simply went to Additional Drivers and switched to Nvidia proprietary drivier over the neouveau drivier, hit "apply changes", then restarted my computer. MATLAB automatically recognized the change. I confirmed this with "opengl info" in MATLAB, which showed that opengl was using hardware rendering with the Nvidia graphics card.

サインインしてコメントする。

その他の回答 (1 件)

Pavol Bezak
Pavol Bezak 2016 年 2 月 17 日
Hello, I have nVidia Quadro 6000, and the same problem. I have no "nouveau" driver.
gpuDevice
Error using gpuDevice (line 26)
No supported GPU device was found on this computer. To learn more about supported GPU devices, see www.mathworks.com/gpudevice.
lspci -vnn | grep VGA -A 12
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF100GL [Quadro 6000] [10de:06d8] (rev a3) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation Device [10de:076f]
Physical Slot: 2
Flags: bus master, fast devsel, latency 0, IRQ 41
Memory at cc000000 (32-bit, non-prefetchable) [size=32M]
Memory at d0000000 (64-bit, prefetchable) [size=128M]
Memory at d8000000 (64-bit, prefetchable) [size=64M]
I/O ports at c000 [size=128]
[virtual] Expansion ROM at ce000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nvidia
05:00.1 Audio device [0403]: NVIDIA Corporation GF100 High Definition Audio Controller [10de:0be5] (rev a1)
nvidia-smi
Wed Feb 17 08:46:18 2016
+------------------------------------------------------+
| NVIDIA-SMI 358.16 Driver Version: 358.16 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro 6000 Off | 0000:05:00.0 On | Off |
| 36% 84C P8 N/A / N/A | 431MiB / 6141MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2014 NVIDIA Corporation
Built on Thu_Jul_17_21:41:27_CDT_2014
Cuda compilation tools, release 6.5, V6.5.12

カテゴリ

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