Then I tried to compile and use the cunn module. Therefore, from within the /torch/extra/cunn folder I gave luarocks make ./rocks/cunn-scm-1.rockspec and apparently it seems to be compiled correctly:
Install the project...
-- Install configuration: "Release"
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/DataParallelTable.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/THCUNN.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/init.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/test.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/test_DataParallelTable.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/THCUNN_h.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lua/cunn/THCUNN_generic_h.lua
-- Installing: /home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so
-- Set runtime path of "/home/t.tsesmelis/torch/install/lib/luarocks/rocks/cunn/scm-1/lib/libTHCUNN.so" to "$ORIGIN/../lib:/home/t.tsesmelis/torch/install/lib:/usr/local/cuda/lib64"
-- Up-to-date: /home/t.tsesmelis/torch/install/include/THCUNN/THCUNN.h
-- Installing: /home/t.tsesmelis/torch/install/include/THCUNN/generic/THCUNN.h
cd build
Updating manifest for /home/t.tsesmelis/torch/install/lib/luarocks/rocks
cunn scm-1 is now built and installed in /home/t.tsesmelis/torch/install/ (license: BSD)
However, now I tried to run the luajit -l cunn -e 'cunn.test()' command in order to test it but then I am getting the following issue:
luajit: .../t.tsesmelis/torch/install/share/lua/5.1/cunn/THCUNN.lua:119: table index is nil
stack traceback:
.../t.tsesmelis/torch/install/share/lua/5.1/cunn/THCUNN.lua:119: in function 'extract_function_names_and_real_args'
.../t.tsesmelis/torch/install/share/lua/5.1/cunn/THCUNN.lua:124: in main chunk
[C]: in function 'require'
/home/t.tsesmelis/torch/install/share/lua/5.1/cunn/init.lua:5: in main chunk
[C]: at 0x00464bb0
[C]: at 0x00405d50
Does anybody understand what seems to be the issue, and help me fix it.
Hi guys,
I downloaded and installed torch from the official website: http://torch.ch/docs/getting-started.html
Then I tried to compile and use the
cunn
module. Therefore, from within the/torch/extra/cunn
folder I gaveluarocks make ./rocks/cunn-scm-1.rockspec
and apparently it seems to be compiled correctly:However, now I tried to run the
luajit -l cunn -e 'cunn.test()'
command in order to test it but then I am getting the following issue:Does anybody understand what seems to be the issue, and help me fix it.