First attempt at installing cuda v6.0 on 32-bit Ubuntu 12.04 using GT 240 card. Everything seemed to work ok (including compiling samples) but I get a “CUDA driver version is insufficient for CUDA runtime version” error when running deviceQuery:
user$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
user$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86 Kernel Module 304.116 Mon Oct 28 20:43:01 PDT 2013
GCC version: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
user$ ls -al /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 May 8 08:31 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 May 8 08:31 /dev/nvidiactl
user$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GT215 [GeForce GT 240] (rev a2)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
user$ lsmod | grep nvidia
nvidia 10304659 40
user$ ls -l /usr/bin/nvidia*
lrwxrwxrwx 1 root root 50 May 6 22:04 /usr/bin/nvidia-bug-report.sh -> /etc/alternatives/i386-linux-gnu_nvidia_bug_report
lrwxrwxrwx 1 root root 33 May 6 22:05 /usr/bin/nvidia-settings -> /etc/alternatives/nvidia_settings
lrwxrwxrwx 1 root root 43 May 6 22:04 /usr/bin/nvidia-smi -> /etc/alternatives/i386-linux-gnu_nvidia_smi
lrwxrwxrwx 1 root root 47 May 6 22:04 /usr/bin/nvidia-xconfig -> /etc/alternatives/i386-linux-gnu_nvidia_xconfig
I’ve read other posts with the same error but honestly can’t figure out what to do. Appreciate some guidance.
You need to update your NVIDIA drivers, as it suggests. I believe the minimum version is 319.37, but not totally sure.
I think I was able to update NVIDIA drivers:
$ dpkg -l | grep nvidia
rc nvidia-304-updates 304.116-0ubuntu0.0.1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-331 331.62-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-331-dev 331.62-0ubuntu1 NVIDIA binary Xorg driver development files
ii nvidia-331-uvm 331.62-0ubuntu1 NVIDIA Unified Memory kernel module
rc nvidia-current 319.37-0ubuntu1 NVIDIA binary Xorg driver, kernel module and VDPAU library
ii nvidia-modprobe 331.62-0ubuntu1 Load the NVIDIA kernel driver and create device files
ii nvidia-persistenced 331.62-0ubuntu1 Load the NVIDIA kernel driver and create device files
ii nvidia-settings 331.62-0ubuntu1 Tool for configuring the NVIDIA graphics driver
ii nvidia-settings-331 331.20-0ubuntu1~xedgers~precise1 Tool for configuring the NVIDIA graphics driver
but now get a new error when running deviceQuery:
$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
FATAL: Module nvidia_331 not found.
cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL
But:
$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GT215 [GeForce GT 240] (rev a2)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
so I’m totally confused. Can anyone suggest what I should do?
You still have a messed up driver install with a mix of driver components. CUDA 6 on linux requires 331.62 or newer driver. Download the appropriate driver from www.nvidia.com and install it. I wouldn’t try to sort this out using package manager methods.
@ken1866, try:
sudo apt-get install libcuda1-331
I found that for 337 drivers, I had to explicitly install nvidia-337, nvidia-337-uvm, and libcuda1-337 from the xorg-edgers repositories for the driver to work under Ubuntu 14.04.
Edit: I see, the main nvidia module wasn’t found. You should uninstall the packages and re-install paying attention at what’s failing, or download and run the manual NVIDIA driver *.run file.