You are not logged in.

#1 2017-11-05 08:41:03

snovik
Member
Registered: 2012-05-06
Posts: 140

[SOLVED] Cannot install libgpuarray

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

#2 2017-11-05 12:25:38

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Cannot install libgpuarray

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

#3 2017-11-06 06:12:32

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: [SOLVED] Cannot install libgpuarray

Because it is old and doesn't work

Offline

#4 2017-11-06 09:15:12

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Cannot install libgpuarray

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

#5 2017-11-06 11:35:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: [SOLVED] Cannot install libgpuarray

snovik wrote:

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

Offline

#6 2017-11-08 09:55:11

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: [SOLVED] Cannot install libgpuarray

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

#7 2017-11-08 11:32:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,529
Website

Re: [SOLVED] Cannot install libgpuarray

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

Offline

#8 2017-11-09 17:15:23

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: [SOLVED] Cannot install libgpuarray

Did a clean install of everything. Problem solved. Thank you

Offline

Board footer

Powered by FluxBB