Open Jimjipeng opened 7 years ago
Did you install cunn?
try luarocks install cunn
try luarocks install cunn 【result】 CMake Error at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:617 (message): Specify CUDA_TOOLKIT_ROOT_DIR Call Stack (most recent call first): CMakeLists.txt:7 (FIND_PACKAGE)
It said Specify CUDA_TOOLKIT_ROOT_DIR
try
CUDA_TOOLKIT_ROOT_DIR=/path/to/cuda/root luarocks install cunn
/home/jp/torch/install/bin/luajit: /home/jp/torch/install/share/lua/5.1/trepl/init.lua:389: /home/jp/torch/install/share/lua/5.1/trepl/init.lua:389: module 'cunn' not found:No LuaRocks module found for cunn no field package.preload['cunn'] no file '/home/jp/.luarocks/share/lua/5.1/cunn.lua' no file '/home/jp/.luarocks/share/lua/5.1/cunn/init.lua' no file '/home/jp/torch/install/share/lua/5.1/cunn.lua' no file '/home/jp/torch/install/share/lua/5.1/cunn/init.lua' no file './cunn.lua' no file '/home/jp/torch/install/share/luajit-2.1.0-beta1/cunn.lua' no file '/usr/local/share/lua/5.1/cunn.lua' no file '/usr/local/share/lua/5.1/cunn/init.lua' no file '/home/jp/.luarocks/lib/lua/5.1/cunn.so' no file '/home/jp/torch/install/lib/lua/5.1/cunn.so' no file '/home/jp/torch/install/lib/cunn.so' no file './cunn.so' no file '/usr/local/lib/lua/5.1/cunn.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /home/jp/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' demo.lua:11: in main chunk [C]: in function 'dofile' ...e/jp/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50