Bug#816283: NVRM: API mismatch on cuda/jessie-backports

Alois Schloegl alois.schloegl at ist.ac.at
Thu Mar 31 16:23:45 UTC 2016


On 03/31/2016 04:12 PM, Andreas Beckmann wrote:
> On 2016-03-31 11:46, Alois Schloegl wrote:
>> I'm trying to get Cuda working on debian/jessie. When running
>> nvidia-smi, dmesg shows this message:
>>
>> [ 2355.945623] NVRM: API mismatch: the client has the version 352.41, but
>> NVRM: this kernel module has the version 352.79.  Please
>> NVRM: make sure that this kernel module and all NVIDIA driver
>> NVRM: components have the same version.
>> [ 2355.970347] NVRM: nvidia_frontend_ioctl: minor 255, module->ioctl
>> failed, error -22
>>
>> Any ideas, where this client with version 352.41 comes from, and how to
>> fix this ?
> 
> We had 352.41-1 in experimental ... or did you install that driver from
> the .run installer?
> 
> This "client" is an old library ... try
> 
>   strace -e open nvidia-smi
> 
> to see which library is is openening and then see where this is
> pointing, it's probably /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
> being incorrect in some way.


Yes, you are right. The are actually a bunch of other library files

# ls -atlr /usr/lib/x86_64-linux-gnu/lib*352*
-rwxr-xr-x 1 root root    75400 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libGLESv2.so.352.41
-rwxr-xr-x 1 root root    51080 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.352.41
-rwxr-xr-x 1 root root   935112 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libEGL.so.352.41
-rwxr-xr-x 1 root root   166848 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-encode.so.352.41
-rwxr-xr-x 1 root root 14280360 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libcuda.so.352.41
-rwxr-xr-x 1 root root 15898960 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.352.41
-rwxr-xr-x 1 root root   159240 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-cfg.so.352.41
-rwxr-xr-x 1 root root  1652272 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvcuvid.so.352.41
-rwxr-xr-x 1 root root   197704 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-ifr.so.352.41
-rwxr-xr-x 1 root root    86088 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-fbc.so.352.41
-rwxr-xr-x 1 root root   967360 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.352.41
-rwxr-xr-x 1 root root  1790568 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-gtk2.so.352.41
-rwxr-xr-x 1 root root  1784456 Sep 10  2015
/usr/lib/x86_64-linux-gnu/libnvidia-gtk3.so.352.41
-rw-r--r-- 1 root root 42469400 Jan 14 00:53
/usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.352.79
-rw-r--r-- 1 root root    12600 Jan 14 00:58
/usr/lib/x86_64-linux-gnu/libnvidia-tls.so.352.79
-rw-r--r-- 1 root root   486048 Jan 14 02:05
/usr/lib/x86_64-linux-gnu/libnvidia-glsi.so.352.79
-rw-r--r-- 1 root root    75400 Jan 14 02:19
/usr/lib/x86_64-linux-gnu/libGLESv2.so.352.79
-rw-r--r-- 1 root root    51080 Jan 14 02:19
/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.352.79
-rw-r--r-- 1 root root   935112 Jan 14 02:19
/usr/lib/x86_64-linux-gnu/libEGL.so.352.79
-rw-r--r-- 1 root root 40648712 Jan 14 02:19
/usr/lib/x86_64-linux-gnu/libnvidia-eglcore.so.352.79
-rw-r--r-- 1 root root 48309464 Jan 14 02:20
/usr/lib/x86_64-linux-gnu/libnvidia-compiler.so.352.79


At the beginning, I used the .run installer, but thought to have cleaned
this up. Obviously, this was not the case. The are a few more files
installed on Sep 10 (mostly symbolic links). I've removed those and
reinstalled nvidia-smi. That fixed the problem.


Thanks a lot for the hint.


















-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20160331/eab0ef9c/attachment-0001.sig>


More information about the pkg-nvidia-devel mailing list