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
require('cutorch') does not work #210
Comments
You've done a non-standard install (did not follow our instructions on torch.ch ), i.e. you installed torch global to the system and not local to ~/ . |
I checked. Both libcutorch.so and libcunn.so is in folder usr/local/lib/lua/5.1. I will reinstall torch again. Thanks. |
if you are reinstalling torch, please use https://github.com/torch/ezinstall/blob/master/clean-old.sh to clean up your old installation. |
Still the sam problem... /Users/mingtu/torch/install/share/lua/5.1/trepl/init.lua:363: /Users/mingtu/torch/install/share/lua/5.1/cutorch/init.lua:2: cannot load '/Users/mingtu/torch/install/lib/lua/5.1/libcutorch.so' I can still find libcutorch in folder /Users/mingtu/torch/install/lib/lua/5.1/libcutorch.so |
what's the output for the command: luajit -l libcutorch |
also for the command: luajit -l torch -l libcutorch |
luajit -l libcutorch luajit -l torch -l libcutorch |
I'm trying this: |
great, that might fix it. |
Still doesn't work. After updating cmake, do I need to reinstall torch? |
after updating cmake, you'll have to reinstall cutorch / cunn: luarocks install cutorch |
Yes. I did that. But same error occurs... |
what CUDA version are you running? can you upgrade to CUDA 7.0 (or even 7.5), that fixes these OSX compile issues to a large extent. CUDA on OSX used to be pretty buggy on the compiler chain till 6.5 |
luajit -l libcutorch luajit -l torch -l libcutorch |
I use cuda 6.5. I will try to upgrade to 7.0. |
Thanks. It works now 👍 |
Hi I have updated to CUDA 7.5 and I am getting same error when do I am using ubuntu 14.04 luajit -l torch -l libcutorch |
I've got the same problem as @jbansal . |
Hi nmeln, Regards, |
@jbansal Thank you for the answer. |
@nmeln Unfortunately, I install torch after CUDA 7.5, with the cmake version 3.3.2, but I'v also met the exactly same problem....... |
And: My env is: OSX10.10.5, Xcode6.1.1, CUDA7.5, cmake 3.3.2 localhost:torch zhoudongbin$ luajit -l torch -l libcutorch |
Running OSX 10.11.2, CUDA7.5, cmake 3.4.3 and getting: luajit -l torch -l libcutorch |
@roeeaharoni have you been able to resolve this issue? I'm running into the same issue. Environment:
When I run luajit -l torch -l libcutorch - I've removed my username for brevity.
When I run $ luajit -l libcutorch:
I pretty sure I've done a completely standard install as I did it on a clean install of OSX 10.11 Any help will be greatly appreciated. |
Hi Guys, I am trying to run a .lua code with Torch7, I came across these errors, I would be really appreciative if someone can help me: Please help me |
I'm getting the same error. The machine in question has an existing global torch installation. I have no root authority so I have to install luarocks packages locally. I find the code to be calling the cutorch.so in the global torch directory, instead of the local directory I installed it too. I suspect other packages I installed has conflicts with global cutorch. I could have installed the entire torch myself but this system has RHEL 6.0 which does not support "bash install-deps". These get me stuck! |
@chaopengshen the |
Hi,
My system is MAC OS 10.10.4
I installed cutorch and cunn using "luarocks install cutorch/cunn". There was no error during this process and at the end it showed that cutorch/cunn is installed in ....
But when I call require('cutorch/cunn'), it gives the error:
/usr/local/share/lua/5.1/trepl/init.lua:363: /usr/local/share/lua/5.1/trepl/init.lua:363: /usr/local/share/lua/5.1/cutorch/init.lua:2: cannot load '/usr/local/lib/lua/5.1/libcutorch.so'
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/trepl/init.lua:363: in function 'require'
[string "_RESULT={require('cunn')}"]:1: in main chunk
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/trepl/init.lua:630: in function 'repl'
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
[C]: at 0x0107d8a530
require('nn') just works fine, only 'cutorch' and 'cunn'.
I installed CUDA 6.5 driver and samples could be compiled correctly.
Anyone know how to solve this problem? Thanks
The text was updated successfully, but these errors were encountered: