[RESOLVED] Install Nvidia CUDA 5.5 on Ubuntu 14.04: No Cuda Cards Detected

" Excuses me for my bad english, I am french "

Hello,

I installed Ubuntu 14.04 and I’m trying to get CUDA working.
My desktop is a HP xw 4600. (nvidia GTX 580)

In the Blender 2.71: File…> User preference…> system
Computer Device,
I have only (None) CPU, I don’t have CUDA.

How to resolved it?

First I installed the proprietary drivers using the PPA: http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu
version driver: nvidia-331.89

Here’s the procedure :
Ctrl + Alt + F1 to switch to a terminal

1- sudo service lightdm stop
2- sudo chmod +x cuda_5.5.22_linux_64.run.run
3- sudo ./cuda_5.5.22_linux_64.run -override

The -override option is mandatory because Ubuntu 14.04 ships with gcc 4.8.2 which is not recognized as supported by the CUDA .run installer.

Here is the complete install log:

cuda_install_2886.zip (69 KB)

Then

sudo service lightdm start

In the Terminal, I do

serviteur@serviteur-HP-xw4600-Workstation:~$ export PATH=/usr/local/cuda-5.5/bin:$PATH
serviteur@serviteur-HP-xw4600-Workstation:~$ export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
serviteur@serviteur-HP-xw4600-Workstation:~$

One reason why the Blender package in Ubuntu sucks is because you need to install CUDA toolkit and lots of dependent packages for developers. You download the oficial Blender .tar.bz2 file, extract an execute the “blender” file. You can download from here too:
https://builder.blender.org/download/

They contain the pre compiled CUDA Kernel and you do not need install CUDA toolkit and heavy dependencies.

By the way, I had read that with new versions (maybe Xorg edgers PPA versions) of the nvidia driver had some trouble getting CUDA available in Blender. I do not know how it is now, but I would recommend using the driver from the official Ubuntu repository.

Deleted text.

I download the official blender-2.71-7728ffa-linux-glibc211-x86_64.tar.bz2 file to https://builder.blender.org/download/,
extract an execute the “blender” file.

In the Blender 2.71: File…> User preference…> system
Computer Device,
I have only:
None
CPU, I don’t have CUDA.

What is the version of offical nvidia driver, work to Ubuntu 14.04 and Blender 2.71?

@ eppo

What text, I deleted?

I am using nvidia 331.38 (nvidia-331-updates) on Kubuntu. Disable Xorg Edgers PPA, Uninstall all nvidia driver (not nouveau) and “not” restart your system, immediately install 331.38 driver. Restart the system. You can do this from Ubuntu Additional Drivers interface, but remember disable XorgEdgers PPA first.

While on Ubuntu and now on the Mint i use drivers downloaded from Nvidia site - file with a long name, version number in it and ending into .run. Nastiest problems usually came from Nivea driver which came back even if nvidia’s one was installed. Got to blacklist it as a module and if i recall disable once on grub command line too.
This is new to me that there is a problem with gcc - i’m a bit behind with upgrades.

Deleted post where i was reading log which says “No driver installed”, then realized you had driver installed before.

the procedure:

1 -I Disable Xorg Edgers PPA

2 - sudo apt-get remove --purge nvidia-*
3 - sudo apt-get autoclean

4 - sudo apt-get update

5- sudo apt-get install nvidia-331-updates[/QUOTE]

Now, I have In the Blender 2.71 and Blender 2.71.5 :
File…> User preference…> system

Computer Device,
None…CUDA
CPU
GTX 580

So, have you been able to solve the problem? Can you choose CUDA now?

I think that, I have solved the problem!

Now, I can choose CUDA.

Ok, good to know :wink:

@ YAFU

It’s possible to share your Xorg.conf file?

I’m not using any xorg.conf file. Luckily these days, rarely the user must manually configure xorg.conf.
So if I uninstall the nvidia driver then system load “nouveau” driver. If I choose the integrated GPU from BIOS, my system loads the intel driver. It’s that simple.

Have you tried booting without any xorg.conf in /etc/X11 (blank or delete the file)?
Anyway, be careful and make a backup of xorg.conf in case your system can not start in graphical mode.

After installing driver, I dont have son !

aplay -l
serviteur@serviteur-HP-xw4600-Workstation:~$ aplay -l
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: NVidia [HDA NVidia], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 7: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 8: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 0: NVidia [HDA NVidia], périphérique 9: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
serviteur@serviteur-HP-xw4600-Workstation:~$ 
lspci -v
serviteur@serviteur-HP-xw4600-Workstation:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 82X38/X48 Express DRAM Controller
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, fast devsel, latency 0
    Capabilities: <access denied>
    Kernel driver in use: x38_edac

00:01.0 PCI bridge: Intel Corporation 82X38/X48 Express Host-Primary PCI Express Bridge (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: 00002000-00002fff
    Memory behind bridge: f2000000-f30fffff
    Prefetchable memory behind bridge: 00000000e8000000-00000000f1ffffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:06.0 PCI bridge: Intel Corporation 82X38/X48 Express Host-Secondary PCI Express Bridge (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=08, subordinate=08, sec-latency=0
    I/O behind bridge: 00001000-00001fff
    Memory behind bridge: f3200000-f32fffff
    Prefetchable memory behind bridge: 00000000f8000000-00000000f81fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 20
    I/O ports at 3100 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 21
    I/O ports at 3120 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 22
    I/O ports at 3140 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02) (prog-if 20 [EHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 22
    Memory at f3304800 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci-pci

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=28, subordinate=28, sec-latency=0
    I/O behind bridge: 00004000-00004fff
    Memory behind bridge: f8200000-f83fffff
    Prefetchable memory behind bridge: 00000000f8400000-00000000f85fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=34, subordinate=34, sec-latency=0
    I/O behind bridge: 00005000-00005fff
    Memory behind bridge: f8600000-f87fffff
    Prefetchable memory behind bridge: 00000000f8800000-00000000f89fffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=3f, subordinate=3f, sec-latency=0
    I/O behind bridge: 00006000-00006fff
    Memory behind bridge: f3100000-f31fffff
    Prefetchable memory behind bridge: 00000000f8a00000-00000000f8bfffff
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 20
    I/O ports at 3160 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 21
    I/O ports at 3180 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 22
    I/O ports at 31a0 [size=32]
    Capabilities: <access denied>
    Kernel driver in use: uhci_hcd

00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02) (prog-if 20 [EHCI])
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0, IRQ 20
    Memory at f3304c00 (32-bit, non-prefetchable) [size=1K]
    Capabilities: <access denied>
    Kernel driver in use: ehci-pci

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) (prog-if 01 [Subtractive decode])
    Flags: bus master, fast devsel, latency 0
    Bus: primary=00, secondary=10, subordinate=10, sec-latency=32
    Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, medium devsel, latency 0
    Capabilities: <access denied>
    Kernel driver in use: lpc_ich

00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 02)
    Subsystem: Hewlett-Packard Company Device 1308
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 45
    I/O ports at 3200 [size=8]
    I/O ports at 3210 [size=4]
    I/O ports at 3208 [size=8]
    I/O ports at 3214 [size=4]
    I/O ports at 31c0 [size=32]
    Memory at f3304000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: <access denied>
    Kernel driver in use: ahci

01:00.0 VGA compatible controller: NVIDIA Corporation GF110 [GeForce GTX 580] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: eVga.com. Corp. Device 1580
    Physical Slot: 2
    Flags: bus master, fast devsel, latency 0, IRQ 47
    Memory at f2000000 (32-bit, non-prefetchable) [size=16M]
    Memory at e8000000 (64-bit, prefetchable) [size=128M]
    Memory at f0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at 2100 [size=128]
    [virtual] Expansion ROM at f3080000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia

01:00.1 Audio device: NVIDIA Corporation GF110 High Definition Audio Controller (rev a1)
    Subsystem: eVga.com. Corp. Device 1580
    Physical Slot: 2
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at f3000000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel

08:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1064ET PCI-Express Fusion-MPT SAS (rev 08)
    Subsystem: LSI Logic / Symbios Logic Device 3090
    Physical Slot: 4
    Flags: bus master, fast devsel, latency 0, IRQ 16
    I/O ports at 1100 [size=256]
    Memory at f3210000 (64-bit, non-prefetchable) [size=16K]
    Memory at f3200000 (64-bit, non-prefetchable) [size=64K]
    [virtual] Expansion ROM at f8000000 [disabled] [size=2M]
    Capabilities: <access denied>
    Kernel driver in use: mptsas

3f:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express (rev 02)
    Subsystem: Hewlett-Packard Company Device 1308
    Physical Slot: 0
    Flags: bus master, fast devsel, latency 0, IRQ 46
    Memory at f3100000 (64-bit, non-prefetchable) [size=64K]
    Expansion ROM at <ignored> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: tg3

serviteur@serviteur-HP-xw4600-Workstation:~$ 

How to solve it ?

I do not know how the audio works in Ubuntu. I know it uses the “pavucontrol” graphical interface for pulseaudio. Perhaps you should better ask in some Ubuntu forum. I know there is a good forum in french about Ubuntu out there.

For me Nvidia sound controller needed Intel drivers to work :(.


07:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at fbffc000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd-hda-intel

Now i read it - you have same driver present. Doesn’t card show up in Sound Preferences - Hardware?

This tutorial video help me: https://www.youtube.com/watch?v=b0axUPdFga8

I actived in the BIOS: Audio Interne (french), now, I have sound

Hi, I’m on Ubuntu 14.04 (it’s KXStudio, but it’s just a Ubuntu 14.04 with KDE and some audio software)

Same problem, but not solved: I installed nvidia-331-updates via the graphical driver manager, but there’s still no GPU available. I know it should work because in Windows it does. Any idea? :slight_smile: