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
how to install lib? #25
Comments
did like here and test_cudamat.py give me FAILED (errors=1, failures=1) |
You're right, cudamat should get a proper package structure, a Unfortunately, I cannot test cudamat on Windows. Could you please try surban's fork and see if it works? It is based on the original project on google code and does not include any of the new features in the project here, but if it works, we could ask for surban's permission to incorporate his changes. |
I manage to compile code adding __declspec(dllexport) to all the functions in cudamat.cu like suggested here https://code.google.com/p/cudamat/issues/detail?id=7 but sometimes 1 test fails (not everytime) FAIL: test_cudamat.test_pow_matrix I think it's due to some floating point errors. |
In the meantime, cudamat is installable via pip (from a local checkout, there's no PyPI release yet); see the installation instructions. Could you please check what exactly you need to change to compile on Windows? Just replace all occurrences of the useless |
I think you can make it instalable from github like done here: _>Just replace all occurrences of the useless extern keyword with _declspec(dllexport) (except for the >occurrence in extern "C") |
It already is installable from github via pip, there's nothing to be done for that, you can just run
If you still have Windows available, I've created a PR with Windows support two weeks ago and am hoping for somebody to test it: #42 |
how to install lib?
it will be good if I can install it using pip like "pip install cudamat"
on win xp x32 I run make in folder and then run python test_cudamat.py
but it gives me error
Traceback (most recent call last):
File "test_cudamat.py", line 4, in
import cudamat as cm
File "C:\Documents and Settings\User\╨рсюўшщ ёЄюы\cudamat-master\cudamat-mas
ter\cudamat.py", line 8, in
cudamat = ct.cdll.LoadLibrary('libcudamat.dll')
File "C:\Python27\lib\ctypes__init_.py", line 443, in LoadLibrary
return self.dlltype(name)
File "C:\Python27\lib\ctypes__init_.py", line 365, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126]
it seems that dll is missing?
I have only .so and .lib files.
if I rename .so to .dll in makefile I get error
Traceback (most recent call last):
File "test_cudamat.py", line 4, in
import cudamat as cm
File "C:\Documents and Settings\User\╨рсюўшщ ёЄюы\cudamat-master\cudamat-mas
ter\cudamat.py", line 12, in
cudamat.get_last_cuda_error.restype = ct.c_char_p
File "C:\Python27\lib\ctypes__init_.py", line 378, in getattr
func = self.getitem(name)
File "C:\Python27\lib\ctypes__init__.py", line 383, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'get_last_cuda_error' not found
The text was updated successfully, but these errors were encountered: