Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

problem:th demo.lua -img ./deepmask/data/testImage.jpg #42

Open
Jimjipeng opened this issue Feb 8, 2017 · 3 comments
Open

problem:th demo.lua -img ./deepmask/data/testImage.jpg #42

Jimjipeng opened this issue Feb 8, 2017 · 3 comments

Comments

@Jimjipeng
Copy link

/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

@samson-wang
Copy link

Did you install cunn?
try luarocks install cunn

@Jimjipeng
Copy link
Author

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)

@samson-wang
Copy link

It said Specify CUDA_TOOLKIT_ROOT_DIR
try
CUDA_TOOLKIT_ROOT_DIR=/path/to/cuda/root luarocks install cunn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants