1. system: kubuntu: 18.04, i have install nvidia driver 390.48.
there are two userful links to install driver:
2.https://askubuntu.com/questions/661922/how-am-i-supposed-to-use-nvidia-prime?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
in kubunt, i use the system setting drivers to choose nvidia drivers.
in debian, i use official site with nvidia and nvidia-prime to install nvidia drivers.
2.install cuda
CUDA Toolkit and Compatible Driver Versions: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
3. use local cuda9.0 deb to install , and i installed successfully. but after that , i can't use nvidia-smi and nvidia-settings.
4. i reboot, and after that , i can use nvidia-smi.
3. install cudnn
4. install libcupti-dev
cuda-command-line-tools package
5.install tensorflow
and i follows : https://github.com/tensorflow/tensorflow/issues/19375
i add this line:
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
to ~/.bashrc. and it turns ok.
so , that's all.