torch/cutorch

cutorch does not load

Spandan-Madan opened this issue · 1 comments

I have tried deleting and installing torch, cutorch, cunn multiple times. However, I am just not able to make require 'cutorch' work.

I removed cutorch using:
luarocks remove cutorch --force

And then re-installed using:
luarocks install cutorch

At the end of installation I get:
cutorch scm-1 is now built and installed in /afs/csail.mit.edu/u/s/smadan/torch/install/ (license: BSD)

But the error still persists.

Error when I try luajit -l cutorch is:
luajit: .../u/s/smadan/torch/install/share/lua/5.1/cutorch/init.lua:2: cannot load '/afs/csail.mit.edu/u/s/smadan/torch/install/lib/lua/5.1/libcutorch.so'
stack traceback:
[C]: in function 'require'
.../u/s/smadan/torch/install/share/lua/5.1/cutorch/init.lua:2: in main chunk
[C]: at 0x0046b7d0
[C]: at 0x004065d0

Error when using require 'cutorch' in interactive th session:
...du/u/s/smadan/torch/install/share/lua/5.1/trepl/init.lua:389: .../u/s/smadan/torch/install/share/lua/5.1/cutorch/init.lua:2: cannot load '/afs/csail.mit.edu/u/s/smadan/torch/install/lib/lua/5.1/libcutorch.so'
stack traceback:
[C]: in function 'error'
...du/u/s/smadan/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
[string "_RESULT={require 'cutorch'}"]:1: in main chunk
[C]: in function 'xpcall'
...du/u/s/smadan/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
...adan/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: at 0x004065d0

I also get the error:
luajit -l libcutorch
luajit: error loading module 'libcutorch' from file '/afs/csail.mit.edu/u/s/smadan/torch/install/lib/lua/5.1/libcutorch.so':
/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /afs/csail.mit.edu/u/s/smadan/torch/install/lib/libTHC.so.0)
stack traceback:
[C]: at 0x0047b020
[C]: at 0x0046b7d0
[C]: at 0x004065d0

CUDA version: 8.0.

Oops, I met the same problem, did you solve the problem?
The same CUDA version - 8.0.