Lastly the repository bumblebee X11 has updated the nvidia driver to the version 410.xx. I have upgrade it my driver to this version. Unfortunately, something has happen, I cannot use nvidia-smi any longer. I get this error when I try to run it
NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.
I also can't run any program that using cuda 9.1 I get this message "CUDA driver version is insufficient for CUDA runtime version".

However, I can still run program using optirun and I am sure it's using nvidia driver because of the output of this "lsmod | grep nvidia"

lsmod | grep nvidia
nvidia_uvm            909312  0
nvidia_drm             45056  3
nvidia_modeset       1044480  3 nvidia_drm
nvidia              16605184  159 nvidia_uvm,nvidia_modeset
ipmi_msghandler        65536  2 ipmi_devintf,nvidia
drm_kms_helper        196608  2 nvidia_drm,i915
drm                   471040  19 drm_kms_helper,nvidia_drm,i915

So what do you thing how can I fix the problem of nvidia-smi and cuda. Should I upgrade cuda to the 10.0 version?

Thank you guys.

I couldn't find the file libnvidia-ml.so in /usr/lib64/nvidia/