Unable to Test the MNIST Sample on Ubuntu 16.04 LTS

I’m unable to run the mnist samples, after following the CUDA installation instrucions.

shreyas@shreyas-Predator-G3-571  ~/cudnn_samples_v7/mnistCUDNN  ./mnistCUDNN
cudnnGetVersion() : 7102 , CUDNN_VERSION from cudnn.h : 7102 (7.1.2)
Cuda failurer version : GCC 5.4.0
Error: CUDA driver version is insufficient for CUDA runtime version
error_util.h:93
Aborting…

This is the error I get when I attempt to run the Mnist Sample.

The config is as below:

✘ shreyas@shreyas-Predator-G3-571  ~/cudnn_samples_v7/mnistCUDNN  nvidia-smi
Wed Apr 11 21:50:51 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111 Driver Version: 384.111 |
|-------------------------------±---------------------±---------------------+
| 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 GTX 1060 Off | 00000000:01:00.0 Off | N/A |
| N/A 53C P0 25W / N/A | 474MiB / 6072MiB | 1% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 11082 G /usr/lib/xorg/Xorg 224MiB |
| 0 11779 G compiz 175MiB |
| 0 12266 G …-token=20018BD4C8017179412A350D139DCC7C 72MiB |
±----------------------------------------------------------------------------+

✘ shreyas@shreyas-Predator-G3-571  ~/cudnn_samples_v7/mnistCUDNN  nvcc -V
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

As you can see I have CUDA 9.1 and the CuDNN version is 7.1.2

You have a 384.xx driver installed with CUDA 9.1 that won’t work.

You should install a R390 driver.