Failed to initialize NVML: Driver/library version mismatch

Environment

OS
CentOS 7
uname -r
3.10.0-693.5.2.el7.x86_64

Problems

nvidia-smi said

Failed to initialize NVML: Driver/library version mismatch
after updating CUDA.

Actually, the outputs of these two commands were different.

$ cat /proc/driver/nvidia/version
$ modinfo nvidia

Solution

reboot.

The CUDA driver is not automatically reloaded after update.

Date:2017-11-06