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

1 view (last 30 days)
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,

Accepted Answer

Jill Reese
Jill Reese on 14 Aug 2014
Yes, it is because you are using the "nouveau" driver. You need to get a compute driver from the NVIDIA website.
  2 Comments
Yelena Bagdasarova
Yelena Bagdasarova on 11 Jan 2018
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.

Sign in to comment.

More Answers (1)

Pavol Bezak
Pavol Bezak on 17 Feb 2016
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

Community Treasure Hunt

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

Start Hunting!