Discussion:
[theano-users] Cannot import Theano "Your installed libgpuarray is not in sync"
Adam Becker
2017-09-03 09:52:11 UTC
Permalink
Hi,

I just updated Theano/gpuarray to bleeding edge git clone.

I got this:

***@KKST:~/WKSP_DL/research$ python3
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import pygpu as pg
pg.gpuarray.api_version()
(2, 0)
import theano as th
ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py", line
179, in <module>
use(config.device)
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py", line
166, in use
init_dev(device, preallocate=preallocate)
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py", line
55, in init_dev
"Your installed libgpuarray is not in sync, please make sure to have
the appropriate version")
ValueError: Your installed libgpuarray is not in sync, please make sure to
have the appropriate version

Here goes the responsible code:

# theano/gpuarray/__init__.py [LINE 43]

def init_dev(dev, name=None, preallocate=None):
global pygpu_activated
if not config.cxx:
raise RuntimeError("The new gpu-backend need a c++ compiler.")
if (pygpu.version.major, pygpu.version.minor, pygpu.version.patch) < (0,
6, 1):
raise ValueError(
"Your installed version of pygpu is too old, please upgrade to
0.6.1 or later")
# This is for the C headers API, we need to match the exact version.
if pygpu.gpuarray.api_version()[0] != 1:
raise ValueError(
"Your installed libgpuarray is not in sync, please make sure to
have the appropriate version")
if dev not in init_dev.devmap:

# <...>


Am I missing something here, or shall I wait for a particular update?

Thanks.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adam Becker
2017-09-03 09:58:15 UTC
Permalink
Okay, I just saw gh-6363.
Post by Adam Becker
Hi,
I just updated Theano/gpuarray to bleeding edge git clone.
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import pygpu as pg
pg.gpuarray.api_version()
(2, 0)
import theano as th
ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py",
line 179, in <module>
use(config.device)
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py",
line 166, in use
init_dev(device, preallocate=preallocate)
File "/home/khaotik/WKSP_DL/dev/Theano/theano/gpuarray/__init__.py",
line 55, in init_dev
"Your installed libgpuarray is not in sync, please make sure to have
the appropriate version")
ValueError: Your installed libgpuarray is not in sync, please make sure
to have the appropriate version
# theano/gpuarray/__init__.py [LINE 43]
global pygpu_activated
raise RuntimeError("The new gpu-backend need a c++ compiler.")
if (pygpu.version.major, pygpu.version.minor, pygpu.version.patch) < (
raise ValueError(
"Your installed version of pygpu is too old, please upgrade
to 0.6.1 or later")
# This is for the C headers API, we need to match the exact version.
raise ValueError(
"Your installed libgpuarray is not in sync, please make sure
to have the appropriate version")
# <...>
Am I missing something here, or shall I wait for a particular update?
Thanks.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...