配置python 中chainer的cuda出现问题

来源:互联网 发布:隔音好的耳机 知乎 编辑:程序博客网 时间:2024/05/01 02:28


配置python 中chainer的cuda出现问题:

1、 要先安装显卡驱动,这个过程有些复杂 参考

http://jingyan.baidu.com/article/9f7e7ec04896fb6f281554e7.html

http://blog.163.com/zhao_en_peng/blog/static/12740422420131202110539/


2、然后安装cuda

要先下载deb文件 ,然后把deb 放在home目录用户的主文件夹下,(https://developer.nvidia.com/cuda-downloads)然后


然后配置环境变量

sudo gedit ~/.bashrc

在./bashrc中加入下面内容并保存


export PATH=/usr/local/cuda-7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda7.5/lib64:$LD_LIBRARY_PATH


然后重新加载文件

~/.bashrc

不行的话则

source ~/.bashrc


https://github.com/pfnet/chainer

3、 然后安装chainer

sudo pip install chainer


http://docs.chainer.org/en/stable/install.html

0 0
原创粉丝点击