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

link with cnmem

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)

相关文章:

  • 2021-10-15
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-08-24
  • 2021-11-11
  • 2021-08-15
  • 2021-11-04
  • 2021-07-10
  • 2022-01-27
相关资源
相似解决方案