Failed to load the 'libcutorch.so' after installed cutorch on mac……

360 views
Skip to first unread message

barry....@gmail.com

unread,
Sep 22, 2015, 6:56:47 AM9/22/15
to torch7
I have installed cutorch through luarocks install cutorch,  on my macbook-por (it contains a nv display card) .And I have installed the CUDA, and torch7. I' sure that my CUDA can work because I already pass some samples in the cuda folders. 

But when I try to "th -e "require 'cutorch'; print(cutorch)", there is a error message:

...s/zhoudongbin/torch/install/share/lua/5.1/trepl/init.lua:363: ...zhoudongbin/torch/install/share/lua/5.1/cutorch/init.lua:2: cannot load '/Users/zhoudongbin/torch/install/lib/lua/5.1/libcutorch.so'


I'm sure that the libcutorch.so is exactly on the right location, but why can't be loaded?


I have googled some cases just like above, but do not find a solution......

barry....@gmail.com

unread,
Sep 22, 2015, 7:56:19 AM9/22/15
to torch7
en, I think I find the problem that I build the torch7 with xocde7's toolkit but build the cutorch with xocde6's toolkit.

But I can't build them with the same Xcode toolkit, it's another story......

barry....@gmail.com

unread,
Sep 23, 2015, 3:30:11 AM9/23/15
to torch7
Well, I have tried to build torch7 and cutorch with Xcode toolkit with the same version.

But, the problem is also here .......

barry....@gmail.com

unread,
Sep 25, 2015, 7:11:22 AM9/25/15
to torch7
OK,I have solved the problem. 



在 2015年9月22日星期二 UTC+8下午6:56:47,(未知)写道:
Reply all
Reply to author
Forward
0 new messages