I installed devdriver_4.2_linux_64_295.41.run and
cudatoolkit_4.2.9_linux_64_ubuntu11.04.run on Ubuntu 12.04 Desktop version.
When I run nvidia-smi, I get the following message.
$ nvidia-smi
Error: API mismatch: the NVIDIA kernel module has version 295.40,
but this NVIDIA driver component has version 295.41. Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
Failed to initialize NVML: Unknown Error
Where can I find the NVIDIA kernel module has version 295.41?
You probably had a different kernel running at the time of your last driver update, so that your currently running kernel didn’t get the latest NVIDIA kernel module installed. Try reinstalling the driver.
Thank you for your reply.
I reinstalled the driver.
But still nvidia-smi shows the same message.
What I did are:
apt-get update
apt-get dist-upgrade
reboot
./devdriver_4.2_linux_64_295.41.run
reboot
Ubuntu 12.04 was cleanly installed and additional software is only g++.
Currently, I’m stuck.
nvidia-current-updates-dev on ubuntu website Ubuntu – Error is at 295.40 version which matches the error message in your first post.
Please first try to remove the “nvidia-current-updates-dev” (or any other package with similar name) from your system and try to install the driver from CUDA zone again.
Thank you very much for your suggestion.
nvidia-current-updates-dev was not installed in my system.
But nvidia-current existed.
So, I uninstalled it with ‘sudo apt-get remove nvidia-current’ and then reinstalled the driver.
It worked!
Thanks again.