ubuntu cuda cudnn总结

1.暂时不要使用18.04,cuda暂时没有官方支持

2.推荐使用cuda8.0, 9.0 可能存在bug

3.安装时查看是uefi还是bios

     3.1已安装的检查办法

     sudo apt install efibootmgr

      sudo efibootmgr

     如果是bios,efibootmgr: EFI variables are not supported on this system.

       3.2查看硬盘格式

4.deb类型文件安装   sudo dpkg -i filename

   cudnn安装    https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#axzz4qYJp45J2

5.which 命令 查看当前python或例如pip的位置

6. 编辑文件 sudo gedit 

7. ll 能够查找到隐形的文件

8.使 路径 重新生效

sudo ldconfig

9. tar -zxvf   解压tgz文件

10.检验cuda

cp -r /usr/local/cuda-9.0/samples/ .
cd samples/
make

11.github       https://www.cnblogs.com/haoxr/p/7693927.html

12. ubuntu 16.04 appstreamcli 问题    https://blog.csdn.net/zhbpd/article/details/77508675

sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

13.  ibcudnn.so.5   和libcudnn.so.5.0.5  理论上只有一个libcudnn.so.5.0.5   如何解决冲突

ln -sf /usr/local/cuda-8.0/lib64/libcudnn.so.5.0.5 /usr/local/cuda-8.0/lib64/libcudnn.so.5

14.loop error

TypeError: __init__() got an unexpected keyword argument 'io_loop'

  解决方案:pip install tornado==4.5.3

https://stackoverflow.com/questions/48090119/jupyter-notebook-typeerror-init-got-an-unexpected-keyword-argument-io-l

15. matplotlib error

ImportError: matplotlib requires pyparsing >= 1.5.6

  解决办法: uninstall  matplotlib  跟 pyparsing  ,重新install

16. 检查cuda 安装情况

        cp -r /usr/local/cuda-9.0/samples/ .  copy一份

        cd samples/   

         make

         bin/x86_64/linux/release/   到sample目录下

         sudo ./deviceQuery

17. rm -rf是强制删除文件或者目录的命令

18. ldconfig  跟 source

19. cudnn 验证  https://blog.csdn.net/u014561933/article/details/79968539

20.cudnn 软链接 https://blog.csdn.net/u012562690/article/details/78121959

猜你喜欢

转载自blog.csdn.net/nathan1025/article/details/82318309
今日推荐