【安装记录】ubuntu18.04+cuda 9.1+NVIDIA 390

本文详细记录了在Ubuntu 18.04上安装CUDA 9.1和NVIDIA 390驱动的过程,包括降低gcc版本、安装CUDA的步骤、安装cudnn7.0.5,以及后续创建Anaconda环境和PyTorch的安装。由于特定版本问题,选择了通过Docker安装PyTorch,并使用PyCharm远程连接到Ubuntu的GPU环境进行开发。
摘要由CSDN通过智能技术生成

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</
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值