Could not insert 'nvidia_352': No such device

I have this problem too. And re-installing the nvidia drivers didn't solve the issue.

Finally, I solved this problem by add two kernel parameters with grub.

add in:

GRUB_CMDLINE_LINUX_DEFAULT

with:

pci=nocrs pci=realloc

I think this is a collision between cuda7.5 and kernel3.19.


Now the problem is solved. I checked sudo dpkg --list | grep nvidia I found as my kernel has 352.41, but the client has 304.12. So I did sudo apt-get remove --purge nvidia-*. It removed all packages. Then, install 352.41 as

$ sudo add-apt-repository ppa:xorg-edgers/ppa -y
$ sudo apt-get update
$ sudo apt-get install nvidia-352

After that

$ sudo dpkg --list | grep nvidia
rc nvidia-304 304.128-0ubuntu0~gpu14.04.2 amd64 NVIDIA legacy binary driver - version 304.128
rc nvidia-304-updates 304.125-0ubuntu0.0.2 amd64 NVIDIA legacy binary driver - version 304.125
ii nvidia-352 352.41-0ubuntu0~gpu14.04.1 amd64 NVIDIA binary driver - version 352.41
rc nvidia-opencl-icd-304 304.128-0ubuntu0~gpu14.04.2 amd64 NVIDIA OpenCL ICD
rc nvidia-opencl-icd-304-updates 304.125-0ubuntu0.0.2 amd64 NVIDIA OpenCL ICD
ii nvidia-opencl-icd-352 352.41-0ubuntu0~gpu14.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.6.2 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 355.11-0ubuntu0~gpu14.04.1 amd64 Tool for configuring the NVIDIA graphics driver

Now version matches. Then ./deviceQuery and all work as expected. Thanks