Discussion:
[theano-users] Error while running code on gpu
g***@gmail.com
2018-02-06 05:55:51 UTC
Permalink
This the error i'm getting when I'm trying to run the following command
: CUDA_VISIBLE_DEVICES=0
THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 python main.py

ERROR (theano.gpuarray): pygpu was configured but could not be imported or
is too old (version 0.7 or higher required)
Traceback (most recent call last):
File "/home/divya/Theano/theano/gpuarray/__init__.py", line 23, in
<module>
import pygpu
ImportError: No module named pygpu

How do I resolve this issue?
--
---
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.
Frédéric Bastien
2018-02-07 20:28:01 UTC
Permalink
Try just this:

python -c "import pygpu"

You need to install this packge. We recommand conda:

conda install theano pygpu
Post by g***@gmail.com
This the error i'm getting when I'm trying to run the following command
: CUDA_VISIBLE_DEVICES=0
THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 python main.py
ERROR (theano.gpuarray): pygpu was configured but could not be imported or
is too old (version 0.7 or higher required)
File "/home/divya/Theano/theano/gpuarray/__init__.py", line 23, in
<module>
import pygpu
ImportError: No module named pygpu
How do I resolve this issue?
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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.
g***@gmail.com
2018-02-07 20:37:35 UTC
Permalink
I had installed it following the steps given in the website
http://deeplearning.net/software/libgpuarray/installation.html
Now when I run the command : python -c "import pygpu" , I'm getting this
error

Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/divya/.local/lib/python2.7/site-packages/pygpu-0.6.5-py2.7-linux-x86_64.egg/pygpu/__init__.py",
line 7, in <module>
from . import gpuarray, elemwise, reduction
ImportError:
/home/divya/.local/lib/python2.7/site-packages/pygpu-0.6.5-py2.7-linux-x86_64.egg/pygpu/gpuarray.so:
undefined symbol: GpuKernel_binary
Post by Frédéric Bastien
python -c "import pygpu"
conda install theano pygpu
Post by g***@gmail.com
This the error i'm getting when I'm trying to run the following command
: CUDA_VISIBLE_DEVICES=0
THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 python main.py
ERROR (theano.gpuarray): pygpu was configured but could not be imported
or is too old (version 0.7 or higher required)
File "/home/divya/Theano/theano/gpuarray/__init__.py", line 23, in
<module>
import pygpu
ImportError: No module named pygpu
How do I resolve this issue?
--
---
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
For more options, visit https://groups.google.com/d/optout.
--
---
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.
g***@gmail.com
2018-02-08 16:21:14 UTC
Permalink
Getting the following error when I'm trying to run this command :
CUDA_VISIBLE_DEVICES=0
THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 python main.py

ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File
"/home/divya/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
line 227, in <module>
use(config.device)
File
"/home/divya/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
line 214, in use
init_dev(device, preallocate=preallocate)
File
"/home/divya/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
line 99, in init_dev
**args)
File "pygpu/gpuarray.pyx", line 651, in pygpu.gpuarray.init
File "pygpu/gpuarray.pyx", line 587, in pygpu.gpuarray.pygpu_init
GpuArrayException: Could not load "libnvrtc.so": libnvrtc.so: cannot open
shared object file: No such file or directory

How should I resolve this ? I had searched online but couldn't find proper
solution.
--
---
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.
Continue reading on narkive:
Loading...