modprobe: ERROR: could not insert 'nvidia_340_uvm'

hi,

I installed Ubuntu 14.04 and I’m trying to get PCL + CUDA working. If I try to start the example I get:

./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

modprobe: ERROR: could not insert 'nvidia_340_uvm': Unknown symbol in module, or unknown parameter (see dmesg)
cudaGetDeviceCount returned 30
-> unknown error
Result = FAIL

Here some additional infos:

sudo  modprobe --force-modversion nvidia-uvm
modprobe: ERROR: could not insert 'nvidia_340_uvm': Exec format error
sudo nvidia-smi
Mon Aug 11 15:21:34 2014       
+------------------------------------------------------+                       
| NVIDIA-SMI 340.24     Driver Version: 340.24         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 630      Off  | 0000:01:00.0     N/A |                  N/A |
| 42%   41C    P0    N/A /  N/A |    351MiB /  4095MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|    0            Not Supported                                               |
+-----------------------------------------------------------------------------+

Please help! :)

I met the same problem. Try

sudo ./deviceQuery

:-)

This does not solve the issue.

I have installed CUDA8.0 for my Ubuntu14.04 with a GTX1080.
I am trying to install tensorflow from source code, but facing a error “ERROR: could not insert ‘nvidia_340_uvm’: Invalid argument” at the step of

zyl@zyl-PC:~/tensorflow$ bazel-bin/tensorflow/cc/tutorials_example_trainer --use_gpu

the responce is :

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
modprobe: ERROR: could not insert 'nvidia_340_uvm': Invalid argument
E tensorflow/stream_executor/cuda/cuda_driver.cc:491] failed call to cuInit: CUDA_ERROR_UNKNOWN
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:153] retrieving CUDA diagnostic information for host: zyl-PC
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:160] hostname: zyl-PC
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:185] libcuda reported version is: 367.48.0
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:356] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module  367.48  Sat Sep  3 18:21:08 PDT 2016
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
"""
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] kernel reported version is: 367.48.0
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:293] kernel version seems to match DSO: 367.48.0
F tensorflow/cc/tutorials/example_trainer.cc:129] Check failed: ::tensorflow::Status::OK() == (session->Run({{"x", x}}, {"y:0", "y_normalized:0"}, {}, &outputs)) (OK vs. Invalid argument: Cannot assign a device to node 'Cast': Could not satisfy explicit device specification '/gpu:0' because no devices matching that specification are registered in this process; available devices: /job:localhost/replica:0/task:0/cpu:0
	 [[Node: Cast = Cast[DstT=DT_FLOAT, SrcT=DT_INT32, _device="/gpu:0"](Const)]])
Aborted (core dumped)

I believe it’s wrong about my cuda.Because the same error appeared after i installed theano in

pip install Theano
from theano import function, config, shared, sandbox
modprobe: ERROR: could not insert 'nvidia_340_uvm': Invalid argument
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu0 is not available  (error: Unable to get the number of gpus available: unknown error)

Really appreciate if anyone can help me to fix it?