word-rnn
word-rnn copied to clipboard
module 'cudnn' not found:No LuaRocks module found for cudnn
Hi there,
Just found this rework of the awesome char-rnn and I think it would be very useful in my case. I tried using it but after the installation I got some errors.
I did
th train.lua -gpuid -1
on a debian and got this is the error
/home/deep/torch/install/bin/luajit: /home/deep/torch/install/share/lua/5.1/trepl/init.lua:389: /home/deep/torch/install/share/lua/5.1/trepl/init.lua:389: /home/deep/torch/install/share/lua/5.1/trepl/init.lua:389: module 'cudnn' not found:No LuaRocks module found for cudnn no field package.preload['cudnn'] no file '/home/deep/.luarocks/share/lua/5.1/cudnn.lua' no file '/home/deep/.luarocks/share/lua/5.1/cudnn/init.lua' no file '/home/deep/torch/install/share/lua/5.1/cudnn.lua' no file '/home/deep/torch/install/share/lua/5.1/cudnn/init.lua' no file './cudnn.lua' no file '/home/deep/torch/install/share/luajit-2.1.0-beta1/cudnn.lua' no file '/usr/local/share/lua/5.1/cudnn.lua' no file '/usr/local/share/lua/5.1/cudnn/init.lua' no file '/home/deep/.luarocks/lib/lua/5.1/cudnn.so' no file '/home/deep/torch/install/lib/lua/5.1/cudnn.so' no file '/home/deep/torch/install/lib/cudnn.so' no file './cudnn.so' no file '/usr/local/lib/lua/5.1/cudnn.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /home/deep/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' train.lua:37: in main chunk [C]: in function 'dofile' ...deep/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50
So I tried to do this
luarocks install cudnn
and this is the error:
`Installing https://raw.githubusercontent.com/torch/rocks/master/cudnn-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/cudnn-scm-1.rockspec... switching to 'build' mode
Missing dependencies for cudnn: cutorch
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode Cloning into 'cutorch'... remote: Counting objects: 229, done. remote: Compressing objects: 100% (183/183), done. remote: Total 229 (delta 63), reused 88 (delta 44), pack-reused 0 Receiving objects: 100% (229/229), 241.20 KiB | 0 bytes/s, done. Resolving deltas: 100% (63/63), done. Checking connectivity... done. Warning: unmatched variable LUALIB
jopts=$(getconf _NPROCESSORS_CONF)
echo "Building on $jopts cores" cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DLUA_INCDIR=/home/deep/torch/install/include -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/deep/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/deep/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$jopts install
Building on 3 cores -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found Torch7 in /home/deep/torch/install CMake Error at /usr/share/cmake-3.0/Modules/FindCUDA.cmake:568 (message): Specify CUDA_TOOLKIT_ROOT_DIR Call Stack (most recent call first): CMakeLists.txt:7 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred! See also "/tmp/luarocks_cutorch-scm-1-3937/cutorch/build/CMakeFiles/CMakeOutput.log".
Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.`
Any help with this?
Thanks
I encountered this problem as well. It encounters the error on line 37 of train.lua which is:
local SDRNN = require 'model.SDRNN'
This variable is only used if your model type is set to 'sdrnn'. I got around this by just commenting out line 37 since I plan to only use LSTM anyways.