1安装ubuntu
2安装NVIDIA Driver
参照https://zhuanlan.zhihu.com/p/36502449
https://blog.csdn.net/hhhuua/article/details/80734092
测试nvidia-smi
3安装ubuntu(因为装390版本,无法安装cuda9.2)
降低gcc版本https://blossomnoodles.github.io/cnBlogs/2018/04/30/Ubuntu18.04-Tensorlow-install.html
gcc --version # check ubuntu 18.04 gcc version, you will find it's 7.3.0
sudo apt install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50 # you will find that message that tells you the gcc-5 is set to be automatic.
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50 # similiar message as gcc</