install nvidia-driver418 and cuda9.2.-->CUDA driver version is insufficient for CUDA runtime vers...

Hi ,everyone,
My machine is ubuntu16.04
I got 2 Tesla P100 ,
Firstly,I install nvidia-driver 418, the result is happy, I got

±----------------------------------------------------------------------------+

| NVIDIA-SMI 418.56 Driver Version: 418.56 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+==|
| 0 Tesla P100-PCIE… Off | 00000000:00:04.0 Off | 0 |
| N/A 38C P0 26W / 250W | 82MiB / 16280MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 Tesla P100-PCIE… Off | 00000000:00:05.0 Off | 0 |
| N/A 38C P0 28W / 250W | 0MiB / 16280MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|===================================================|
| 0 1678 G /usr/lib/xorg/Xorg 82MiB |
±----------------------------------------------------------------------------+
Then I install cuda9.2(The reason why I didn’t choose cuda10.0 is that I want to use pytorch0.4 but it doesn’t support cuda10.0).
I got this:

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148

But when I check ,
cd /usr/local/cuda-9.2/samples/1_Utilities/deviceQuery
sudo make
./deviceQuery
it gave me CUDA driver version is insufficient for CUDA runtime version.
I installed nvidia-driver by

sudo apt-get install nvidia-418

And I installed cuda by download the cuda_9.2.148_396.37_linux and use sudo sh cuda_9.2.148_396.37_linux,(without installing the driver and I have set the relevant PATH).
Can anyone help me ?
(After I installed the driver418, I installed the cuda9.0 firstly,but it didn’t work because the same reason.Then I uninstalled it and tried the cuda9.2,)
Beg your help!

Somehow your driver install is not correct. The nvidia-418 is pulling from the ppa repository, not from a NVIDIA source. I usually recommend that NVIDIA sources are used for installation. You can find more information at http://www.nvidia.com/getcuda and also the linux install guide which is documentation linked from that location.

That’s very kind of you ,I will try to install the driver by NVIDIA sources and see how it goes.