"no CUDA-capable device is detected" with Titan xp, no problem with old GPU

I have a similar problem as described in https://devtalk.nvidia.com/default/topic/1016270/cuda-setup-and-installation/no-cuda-device-found/, but in my case it doesn’t seem to be any problem with the installation. I’m trying to install it on centOS7 with cuda 8.0 and I have followed the installation guide in detail, twice, so I don’t think the problem is due to incorrect installation. When I run deviceQuery I get:

./deviceQuery Starting...

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

cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL

I have checked the dev packages and kernel headers and they seems to be correct. Additionally, the installation works when I change to old GPUs (GTX 760 & GTX650 Ti). The problem may be connected to problems to identify the GPU correctly. Here the GPU gets identified as GeForce GTX 1080 Ti, not Titan x.

$lspci | grep -i nvidia
03:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)

Other commands just return Error or Unknown as name, e.g.:

Fri Jul  7 15:14:44 2017       
| NVIDIA-SMI 375.26                 Driver Version: 375.26                    |
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|   0  ERR!                Off  | 0000:03:00.0      On |                  N/A |
| 23%   40C    P5    21W / 250W |    285MiB / 11171MiB |      2%      Default |
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|    0      2972    G   /usr/bin/Xorg                                  149MiB |
|    0      3719    G   /usr/bin/gnome-shell                           133MiB |

Any suggestions how to fix this problem?

Try loading a newer driver. 375.26 is the original driver that comes with CUDA 8.0.61 installer, and I believe it is too old to properly recognize Titan Xp. Be sure to use the same installation method (runfile installer or package manager) that you used to install 375.26

Seems to work now. Thanks!