Theano: CNMeM is disabled, CuDNN not available

来源:互联网 发布:远控软件下载 编辑:程序博客网 时间:2024/05/21 03:24

原文转自:http://www.cnblogs.com/ZJUT-jiangnan/p/5532724.html

感谢原文作者的辛勤工作!

---------------------------------------------------------------------------------------------------------


Theano: CNMeM is disabled, CuDNN not available

Problem

Theano: CNMeM is disabled, CuDNN not available

Solution

cnmem package: https://github.com/NVIDIA/cnmem

% cd $HOME% git clone https://github.com/NVIDIA/cnmem.git cnmem
% cd cnmem% mkdir build% cd build% cmake ..% make

The source folder contains a header file include/cnmem.h and the build directory contains the library libcnmem.so, put them into your cuda path: /usr/local/cuda/include,/usr/local/cuda/lib64

.thenaorc config

[lib]cnmem=1

Test

>>> import theano>>> Using gpu device 0: GeForce GTX TITAN X (CNMeM is enabled with initial size: 95.0% of memory, cuDNN 5005)
0 0