CUDA 9.1 on Ubuntu 16.04 can't see Titan Xp

I have installed CUDA 9.1 and cudnn 7.0.5 on my Ubuntu 16.04. It has a Titan Xp CUDA-compatible GPU, however I get the following error:

Error: no CUDA-capable device is detected
error_util.h:93
Aborting...

maybe you didn’t install correctly.

what does

nvidia-smi

return?

$  nvidia-smi
Sat Dec 23 18:27:48 2017       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 387.34                 Driver Version: 387.34                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  TITAN Xp COLLEC...  Off  | 00000000:01:00.0  On |                  N/A |
| 23%   28C    P8    10W / 250W |    115MiB / 12188MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1045      G   /usr/lib/xorg/Xorg                            87MiB |
|    0      1616      G   compiz                                        25MiB |
+-----------------------------------------------------------------------------+

after you installed CUDA 9.1, did you validate the install?

I have reinstalled the driver, cuda & cudnn and everything works now.
Thank you for your support!