Closed siamak-h closed 8 years ago
Today I found this excellent rock using opencl, after I installed, the test gave two error messages same as @siamak-h came across
Function call failed
[string "a:sigmoid()"]:1: attempt to call method 'sigmoid' (a nil value)
stack traceback:
[string "a:sigmoid()"]:1: in main chunk
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:244: in function 'v'
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1031: in function <...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029>
[C]: in function 'xpcall'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1041: in function 'test'
...s/zhuxiaohu/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
(command line):1: in main chunk
[C]: at 0x01082e2bc0
--------------------------------------------------------------------------------
outplace_sigmoid
Function call failed
[string "res_cpu = torch.sigmoid(c)"]:1: attempt to call field 'sigmoid' (a nil value)
stack traceback:
[string "res_cpu = torch.sigmoid(c)"]:1: in main chunk
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:257: in function 'v'
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1031: in function <...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029>
[C]: in function 'xpcall'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
...s/zhuxiaohu/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
...aohu/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1041: in function 'test'
...s/zhuxiaohu/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
(command line):1: in main chunk
[C]: at 0x01082e2bc0```
Ok. This is because you need th elatest versoin of both nn
and clnn
. Please can you run the following, then retry? :
luarocks install nn
luarocks install clnn
Sorry, correction, should be:
luarocks install torch
luarocks install cltorch
Running
luajit -l cltorch -e 'cltorch.test()'
produces the message:Completed 219 asserts in 114 tests with 2 errors
on my system. I did not actually try to test previous commits. I used commit 550b4f3, Ubuntu 14.04, with two VGAs and the fglrx driver:Below is the test output and the output from
clinfo
. Excuse me for loading the page with all text, I thought it might help.Thanks, Siamak
clinfo output: