Cltorch Unit test failed
Opened this issue · 1 comments
rsaliy commented
Hi,
I've got the next error when try to run cltorch.test()
luajit -l cltorch -e 'cltorch.test()'
running tests...
aftter requiring cltorch.unit_storage
Running 2 tests
1/2 test_get ............................................................ [WAIT]
1/2 test_get ............................................................ [ERROR]
2/2 test_basic .......................................................... [WAIT]
2/2 test_basic .......................................................... [ERROR]
Completed 0 asserts in 2 tests with 0 failures and 2 errors
--------------------------------------------------------------------------------
test_get
Function call failed
Something went wrong: OpenCL library not found at /home/ros/torch-cl/opencl/cltorch/src/torch/generic/Storage.cpp:101
stack traceback:
[C]: at 0xb215fab0
[C]: in function 'ClStorage'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:64: in function 'v'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:84: in function <.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:82>
[C]: in function 'xpcall'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:437: in function '_run'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:356: in function 'run'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'
/home/ros/torch-cl/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'
(command line):1: in main chunk
[C]: at 0x0804cc80
--------------------------------------------------------------------------------
test_basic
Function call failed
No OpenCL-enabled devices available at /home/ros/torch-cl/opencl/cltorch/src/lib/THClGeneral.cpp:139
stack traceback:
[C]: at 0xb215fab0
[C]: in function 'ClStorage'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:25: in function 'v'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:84: in function <.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:82>
[C]: in function 'xpcall'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:437: in function '_run'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:356: in function 'run'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'
/home/ros/torch-cl/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'
(command line):1: in main chunk
[C]: at 0x0804cc80
--------------------------------------------------------------------------------
luajit: /home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:364: An error was found while running tests!
stack traceback:
[C]: in function 'assert'
/home/ros/torch-cl/install/share/lua/5.1/torch/Tester.lua:364: in function 'run'
.../torch-cl/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'
/home/ros/torch-cl/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'
(command line):1: in main chunk
[C]: at 0x0804cc80
rsaliy commented
ldd $(which clinfo) shows:
..........
ldd $(which clinfo)
linux-gate.so.1 => (0xb776a000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7741000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76ec000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb76e6000)
libOpenCL.so.1 => not found
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb76c9000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb76ac000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb74f6000)
/lib/ld-linux.so.2 (0x80076000)
............................................................
locate libOpenCL.so shows:
..........
locate libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86/libOpenCL.so.1
/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so.1
/opt/amd-opencl-icd-VERSION.MINOR/lib/libOpenCL.so.1