You are not logged in.
Pages: 1
I did everything as system library as describe here http://deeplearning.net/software/libgpu … y-as-admin
As far as I could judge no errors popped up
I added /usr/local/lib to path
$ which libgpuarray.so
/usr/local/lib/libgpuarray.so
But when I run the test I still the file not found error
$ DEVICE="cuda" python -c "import pygpu;pygpu.test()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/pygpu/__init__.py", line 7, in <module>
from . import gpuarray, elemwise, reduction
ImportError: libgpuarray.so.3: cannot open shared object file: No such file or directory
Last edited by snovik (2017-11-09 17:15:38)
Offline
It advisable to have pacman keep track of the software installed on your system. There appears to be an AUR package containing the library you're trying to install, why don't you give that a try (after removing the manually installed one)?
Offline
Because it is old and doesn't work
Offline
While the indicated AUR version indeed does appear to be out of date, the PKGBUILD clearly retrieves the latest git version. The PKGBUILD also seems to be in line with installation instructions you provided. Could you please elaborate on "doesn't work", ideally providing the issued commands with the corresponding error messages?
Offline
I added /usr/local/lib to path
What does this mean? Do you literally mean you added this to the PATH environment variable? This would not be expected to work, PATH is for excutables, not for library look-up. This would explain why your attempt failed. The correct solution would, however, still be to build it properly using the aur package or a similar PKGBUILD.
Last edited by Trilby (2017-11-06 11:36:23)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
I installed the AUR version and still get the same error on the test
$ DEVICE="cuda" python -c "import pygpu;pygpu.test()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/sergej/data/ML/git/libgpuarray/pygpu/__init__.py", line 7, in <module>
from . import gpuarray, elemwise, reduction
File "/home/sergej/data/ML/git/libgpuarray/pygpu/elemwise.py", line 3, in <module>
from .dtypes import dtype_to_ctype, get_common_dtype
File "/home/sergej/data/ML/git/libgpuarray/pygpu/dtypes.py", line 6, in <module>
from . import gpuarray
ImportError: cannot import name 'gpuarray'
Offline
No, that is clearly not the same error. The current error is due to an attempt to import something from a path in your home directory and it is not found there. You are using some local version of pygpu which is missing some content. Use the version packaged in the AUR.
Last edited by Trilby (2017-11-08 11:38:17)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Did a clean install of everything. Problem solved. Thank you
Offline
Pages: 1