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

libcudamat.so? #5

Closed
YantianZha opened this issue Mar 14, 2016 · 5 comments
Closed

libcudamat.so? #5

YantianZha opened this issue Mar 14, 2016 · 5 comments

Comments

@YantianZha
Copy link

Hi,

I tried to run lstm_combo.py, but I got the error: OSError: dlopen(/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so, 6): image not found

Where can I get libcudamat.so? Thank you in advance!

@mansimov
Copy link
Owner

you need to go first inside cudamat folder and install it by running "make"

make sure to set correct path to relevant dependencies inside Makefile

@YantianZha
Copy link
Author

Thanks a lot!

@YantianZha
Copy link
Author

But after successfully complying CUDA, I still got an error:
snip20160314_7

I believe the error comes from the wrong configuration in Makefile. Since my graphics card, NVIDIA GTX 650, maybe different from yours. So here's my unsuccessful trial:
snip20160314_8

Therefore, I suspect the way of editing the makefile was incorrect?

Thanks!

@mansimov
Copy link
Owner

You can see that the error says that the cuda toolkit version you are using is incompatible with your gpu GTX 650.

Which version of cuda toolkit you are using ? I would maybe suggest downgrading to older toolkits that support your gpu and changing the path to it in Makefile

@YantianZha
Copy link
Author

Thanks! After a survey, I found I can't use CUDA 6.5 (with mac of EI Capitan). So I used CUDA 7.5. But it seems that I must use CUDA 6.5? Here is the error:

Traceback (most recent call last):
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/lstm_combo.py", line 1, in
from data_handler import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/data_handler.py", line 3, in
from util import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/util.py", line 3, in
import cudamat as cm
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/init.py", line 1, in
from cudamat import *
File "/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/cudamat.py", line 11, in
_cudamat = ct.cdll.LoadLibrary(os.getcwd() + '/cudamat/libcudamat.so')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)

OSError: dlopen(/Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so, 6): Library not loaded: @rpath/libcublas.7.5.dylib
Referenced from: /Users/yantian/Google Drive/Yantian/DL/unsupervised-videos-master/cudamat/libcudamat.so
Reason: image not found

I do have the libcudamat.so in the cudamat folder.
Thanks!

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