Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cutorch does not load #824

Open
Spandan-Madan opened this issue Apr 23, 2018 · 1 comment
Open

cutorch does not load #824

Spandan-Madan opened this issue Apr 23, 2018 · 1 comment

Comments

@Spandan-Madan
Copy link

Spandan-Madan commented Apr 23, 2018

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.

@ez4lionky
Copy link

ez4lionky commented Dec 22, 2019

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

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

No branches or pull requests

2 participants