【问题标题】:regarding setting up GPU for theano关于为 theano 设置 GPU
【发布时间】:2017-03-15 17:01:27
【问题描述】:

我在home/.theanorc下配置GPU如下

bash-4.1$ cat .theanorc
[global]
floatX = float32
device = gpu0

[lib]
cnmem = 1

运行程序出现以下警告信息,如何解决这个问题?

python train.py                                                                        
Using Theano backend.                                                                                                     
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be removed in the next release (v0.10).  Please switch to the gpuarray backend. You can get more information about how to switch at this URL:                                                                          
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29                                                        

ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.

【问题讨论】:

    标签: theano theano-cuda


    【解决方案1】:

    可以按照提供的链接 (https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29) 中的步骤缓解有关 cuda 后端的警告 这只是一个警告,如果您不修复它,代码应该运行事件。

    对于该错误,您首先需要确保已安装 nvcc 编译器并且路径设置正确。假设安装在目录中

    /usr/local/cuda-7.0

    你需要做以下事情

    导出 PATH=/usr/local/cuda-7.0/bin:$PATH

    导出 LD_LIBRARY_PATH=/usr/local/cuda-7.0/targets/x86_64-linux/lib:$LD_LIBRARY_PATH

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-03
      • 2018-05-08
      • 2013-08-12
      • 2017-04-04
      • 2017-06-22
      • 2020-02-25
      • 1970-01-01
      • 2017-03-22
      相关资源
      最近更新 更多