Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-09-08, 06:28 PM   #1
Gaspartacus
Registered User
 
Join Date: Apr 2008
Posts: 3
Default API Mismatch between NVIDIA driver and kernel module

Hey,

I'm trying to run a CUDA example that compiled just fine under a 64-bit linux, and this is the error message I get:

Error: API mismatch: this NVIDIA driver component has version
169.12, but the NVIDIA kernel module's version does not match.
Please make sure that the kernel module and all NVIDIA driver
components have the same version.
There is no device supporting CUDA.

Now, first question I suppose is how do I check the kernel module version? I'm relatively familiar with the Linux interface but I haven't had to mess with kernel modules before. As usual, the learning curve is something like sea level to the top of mount Everest in five feet. I'll try any simple solutions anyone has to offer, but in the meanwhile here's some more detailed background:

I'm setting up a 64-bit Linux box running Ubuntu that has an ATI card running the main display and two C870 Teslas for some GPGPU action. I downloaded the latest driver installation, 169.12, and it installed fine: it didn't find a precompiled kernel interface on NVIDIA's site and compiled one on its own without incident.

After running nvidia-xconfig, it wouldn't boot; that program insisted on setting the driver for the main card to be the NVIDIA driver (as an ATI card, that obviously didn't work). The original xorg.conf file had something like:

Section "Device"
Identifier "Generic Video Card"
Driver "nvidia"
EndSection

In addition, the X server gave errors as to the lack of entries for PCI BusIDs :4:0:0 and 3:0:0 (which were, I correctly guessed, the Tesla cards). So I modified that portion of xorg.conf to be:


Section "Device"
Identifier "Generic Video Card"
Driver "ati"
BusID "PCI:5:9:0"
EndSection

Section "Device"
Identifier "Tesla 1"
Driver "nvidia"
BusID "PCI:3:0:0"
EndSection

Section "Device"
Identifier "Tesla 2"
Driver "nvidia"
BusID "PCI:4:0:0"
EndSection


I'll attach the full xorg.conf file that I'm using. That seemed to do the trick; I was able to run X just fine now. However, trying to run a simple CUDA program (deviceQuery) gave me the error above. Any suggestions? I'll attach my xorg.conf file and the result of running nvidia-bug-report. Please let me know if there's anything else I could provide that would help, and thanks in advance.
Attached Files
File Type: gz nvidia-bug-report.log.tar.gz (35.6 KB, 135 views)
File Type: txt xorg.conf.txt (4.4 KB, 163 views)
Gaspartacus is offline   Reply With Quote
Old 04-10-08, 12:27 PM   #2
Tub
Registered User
 
Join Date: Nov 2006
Posts: 95
Default Re: API Mismatch between NVIDIA driver and kernel module

Quote:
Now, first question I suppose is how do I check the kernel module version?
dmesg | grep NVIDIA

after loading the module outputs this for me:

nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 100.14.19 Wed Sep 12 14:08:38 PDT 2007
Tub is offline   Reply With Quote
Old 04-10-08, 01:34 PM   #3
Gaspartacus
Registered User
 
Join Date: Apr 2008
Posts: 3
Default Re: API Mismatch between NVIDIA driver and kernel module

Running dmesg | grep NVIDIA gets me:

[ 0.000000] ACPI: DSDT (v001 NVIDIA NVDAACPI 0x00001000 MSFT 0x03000000) @ 0x0000000000000000
[ 32.921221] nvidia: module license 'NVIDIA' taints kernel.
[ 33.175454] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 1.0-9755 Mon Feb 26 23:16:31 PST 2007


So it looks like the kernel module version is 1.0-9755, which is definitely not the same as the driver, 169.12. Or is it supposed to be?
Gaspartacus is offline   Reply With Quote
Old 04-10-08, 01:39 PM   #4
pe1chl
Registered User
 
Join Date: Aug 2003
Posts: 1,026
Default Re: API Mismatch between NVIDIA driver and kernel module

You are using Ubuntu. You are probably bitten by the scripts that put back the kernel module installed by the "restricted drivers manager" all the time.
Please search for problems with Ubuntu to find how to kill this beast.
(or just uninstall it)
pe1chl is offline   Reply With Quote
Old 04-10-08, 01:40 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: API Mismatch between NVIDIA driver and kernel module

This thread may also help: http://www.nvnews.net/vbulletin/showthread.php?t=72490.
zander is offline   Reply With Quote
Old 04-21-08, 10:19 PM   #6
Gaspartacus
Registered User
 
Join Date: Apr 2008
Posts: 3
Default Re: API Mismatch between NVIDIA driver and kernel module

Followup: I'm not sure if the problem had to do with Ubuntu, but I wasn't inserting the nvidia module into the kernel at boot time. Furthermore, I didn't realize that I had to create the links in /dev myself. The commands that worked for me, in case anyone else needs them:

sudo insmod /lib/modules/2.6.20-16-generic/kernel/drivers/nvidia.ko

And then

sudo mknod -m 666 /dev/nvidia0 c 195 0
sudo mknod -m 666 /dev/nvidia1 195 1
sudo mknod -m 666 /dev/nvidiactl c 195 255


For two Teslas, of course.
Gaspartacus is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 05:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 07:23 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 09:49 AM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 02:44 PM

All times are GMT -5. The time now is 02:37 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.