Re: [theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
@El Houssine Talab: Reboot your computer. That helped me! -Ø On Fri, Sep 15, 2017 at 12:18 PM, El Houssine Talab < elhoussineta...@gmail.com> wrote: > Hi, can you please elaborate how to implement the solution you are > suggesting? Thank you. > > On Friday, March 31, 2017 at 4:53:44 PM UTC+4, nouiz wrote: >> >> lib.cnmem isn't used by the new backend. Use gpuarray.preallocate instead. >> >> Fred >> >> Le jeu. 30 mars 2017 15:39, Øystein Schønning-Johansen >> a écrit : >> >>> Thanks for answering, Pascal. >>> >>> Just before I ran deviceQuery and nvidia-smi, I did a reboot of the >>> computer, >>> and guess what? >>> [oystein@jupiter release]$ *python* >>> Python 3.6.0 (default, Jan 16 2017, 12:12:55) >>> [GCC 6.3.1 20170109] on linux >>> Type "help", "copyright", "credits" or "license" for more information. >>> >>> *import theano* >>> *Using cuDNN version 5105 on context None* >>> *Mapped name None to device cuda: GeForce GTX 1080 (:02:00.0)* >>> >>> It works again! I guess the reboot helped. >>> >>> I've no idea what triggered the bug in the first place. I might have had >>> a nvidia driver upgrade pending a reboot or something. >>> >>> Thanks anyway, >>> -Øystein >>> >>> On Thursday, March 30, 2017 at 8:26:05 PM UTC+2, Pascal Lamblin wrote: >>> Are you able to run other CUDA programs on that GPU, for instance devicQuery (source included in cuda SDK)? What does deviceQuery return, vs nvidia-smi? On Thu, Mar 30, 2017, Øystein Schønning-Johansen wrote: > > > Hi all! > > Today I got the 'strange' error message when importing theano. This has worked perfectly before, > > I've built theano and libgpuarray from git sources. I've even recompiled from the today's repo code, but I get the same error every time. > > Any hints? > > > Thanks, > > -Øystein > > > [oystein@jupiter libgpuarray-git]$ python > Python 3.6.0 (default, Jan 16 2017, 12:12:55) > [GCC 6.3.1 20170109] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import theano > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled > Traceback (most recent call last): > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 164, in > use(config.device) > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 151, in use > init_dev(device) > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 60, in init_dev > sched=config.gpuarray.sched) > File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init (pygpu/gpuarray.c:9419) > File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:9110) > File "pygpu/gpuarray.pyx", line 1021, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) > pygpu.gpuarray.GpuArrayException: Unknown device error: -1 > >>> > > [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc > [global] > floatX = float32 > device = cuda > allow_gc = False > [lib] > cnmem=1.0 > > > -- > > --- > 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. -- Pascal >>> -- >>> >>> --- >>> 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. >>> >> -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "theano-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/theano-users/-_YFZsTfwxY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > theano-users+unsubscr...@googlegroups.com. > 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
Hi, can you please elaborate how to implement the solution you are suggesting? Thank you. On Friday, March 31, 2017 at 4:53:44 PM UTC+4, nouiz wrote: > > lib.cnmem isn't used by the new backend. Use gpuarray.preallocate instead. > > Fred > > Le jeu. 30 mars 2017 15:39, Øystein Schønning-Johansen > a écrit : > >> Thanks for answering, Pascal. >> >> Just before I ran deviceQuery and nvidia-smi, I did a reboot of the >> computer, >> and guess what? >> [oystein@jupiter release]$ *python* >> Python 3.6.0 (default, Jan 16 2017, 12:12:55) >> [GCC 6.3.1 20170109] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> *import theano* >> *Using cuDNN version 5105 on context None* >> *Mapped name None to device cuda: GeForce GTX 1080 (:02:00.0)* >> >> It works again! I guess the reboot helped. >> >> I've no idea what triggered the bug in the first place. I might have had >> a nvidia driver upgrade pending a reboot or something. >> >> Thanks anyway, >> -Øystein >> >> On Thursday, March 30, 2017 at 8:26:05 PM UTC+2, Pascal Lamblin wrote: >> >>> Are you able to run other CUDA programs on that GPU, for instance >>> devicQuery (source included in cuda SDK)? >>> What does deviceQuery return, vs nvidia-smi? >>> >>> On Thu, Mar 30, 2017, Øystein Schønning-Johansen wrote: >>> > >>> > >>> > Hi all! >>> > >>> > Today I got the 'strange' error message when importing theano. This >>> has worked perfectly before, >>> > >>> > I've built theano and libgpuarray from git sources. I've even >>> recompiled from the today's repo code, but I get the same error every time. >>> > >>> > Any hints? >>> > >>> > >>> > Thanks, >>> > >>> > -Øystein >>> > >>> > >>> > [oystein@jupiter libgpuarray-git]$ python >>> > Python 3.6.0 (default, Jan 16 2017, 12:12:55) >>> > [GCC 6.3.1 20170109] on linux >>> > Type "help", "copyright", "credits" or "license" for more information. >>> > >>> import theano >>> > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled >>> > Traceback (most recent call last): >>> > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", >>> line 164, in >>> > use(config.device) >>> > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", >>> line 151, in use >>> > init_dev(device) >>> > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", >>> line 60, in init_dev >>> > sched=config.gpuarray.sched) >>> > File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init >>> (pygpu/gpuarray.c:9419) >>> > File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init >>> (pygpu/gpuarray.c:9110) >>> > File "pygpu/gpuarray.pyx", line 1021, in >>> pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) >>> > pygpu.gpuarray.GpuArrayException: Unknown device error: -1 >>> > >>> >>> > >>> > [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc >>> > [global] >>> > floatX = float32 >>> > device = cuda >>> > allow_gc = False >>> > [lib] >>> > cnmem=1.0 >>> > >>> > >>> > -- >>> > >>> > --- >>> > 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. >>> >>> >>> -- >>> Pascal >>> >> -- >> >> --- >> 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. >> > -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
lib.cnmem isn't used by the new backend. Use gpuarray.preallocate instead. Fred Le jeu. 30 mars 2017 15:39, Øystein Schønning-Johansen a écrit : > Thanks for answering, Pascal. > > Just before I ran deviceQuery and nvidia-smi, I did a reboot of the computer, > and guess what? > [oystein@jupiter release]$ *python* > Python 3.6.0 (default, Jan 16 2017, 12:12:55) > [GCC 6.3.1 20170109] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> *import theano* > *Using cuDNN version 5105 on context None* > *Mapped name None to device cuda: GeForce GTX 1080 (:02:00.0)* > > It works again! I guess the reboot helped. > > I've no idea what triggered the bug in the first place. I might have had a > nvidia driver upgrade pending a reboot or something. > > Thanks anyway, > -Øystein > > On Thursday, March 30, 2017 at 8:26:05 PM UTC+2, Pascal Lamblin wrote: > > Are you able to run other CUDA programs on that GPU, for instance > devicQuery (source included in cuda SDK)? > What does deviceQuery return, vs nvidia-smi? > > On Thu, Mar 30, 2017, Øystein Schønning-Johansen wrote: > > > > > > Hi all! > > > > Today I got the 'strange' error message when importing theano. This has > worked perfectly before, > > > > I've built theano and libgpuarray from git sources. I've even recompiled > from the today's repo code, but I get the same error every time. > > > > Any hints? > > > > > > Thanks, > > > > -Øystein > > > > > > [oystein@jupiter libgpuarray-git]$ python > > Python 3.6.0 (default, Jan 16 2017, 12:12:55) > > [GCC 6.3.1 20170109] on linux > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import theano > > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled > > Traceback (most recent call last): > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 164, in > > use(config.device) > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 151, in use > > init_dev(device) > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 60, in init_dev > > sched=config.gpuarray.sched) > > File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init > (pygpu/gpuarray.c:9419) > > File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init > (pygpu/gpuarray.c:9110) > > File "pygpu/gpuarray.pyx", line 1021, in > pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) > > pygpu.gpuarray.GpuArrayException: Unknown device error: -1 > > >>> > > > > [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc > > [global] > > floatX = float32 > > device = cuda > > allow_gc = False > > [lib] > > cnmem=1.0 > > > > > > -- > > > > --- > > 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. > > > -- > Pascal > > -- > > --- > 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+unsubscr...@googlegroups.com. > 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
Thanks for answering, Pascal. Just before I ran deviceQuery and nvidia-smi, I did a reboot of the computer, and guess what? [oystein@jupiter release]$ *python* Python 3.6.0 (default, Jan 16 2017, 12:12:55) [GCC 6.3.1 20170109] on linux Type "help", "copyright", "credits" or "license" for more information. >>> *import theano* *Using cuDNN version 5105 on context None* *Mapped name None to device cuda: GeForce GTX 1080 (:02:00.0)* It works again! I guess the reboot helped. I've no idea what triggered the bug in the first place. I might have had a nvidia driver upgrade pending a reboot or something. Thanks anyway, -Øystein On Thursday, March 30, 2017 at 8:26:05 PM UTC+2, Pascal Lamblin wrote: > > Are you able to run other CUDA programs on that GPU, for instance > devicQuery (source included in cuda SDK)? > What does deviceQuery return, vs nvidia-smi? > > On Thu, Mar 30, 2017, Øystein Schønning-Johansen wrote: > > > > > > Hi all! > > > > Today I got the 'strange' error message when importing theano. This has > worked perfectly before, > > > > I've built theano and libgpuarray from git sources. I've even recompiled > from the today's repo code, but I get the same error every time. > > > > Any hints? > > > > > > Thanks, > > > > -Øystein > > > > > > [oystein@jupiter libgpuarray-git]$ python > > Python 3.6.0 (default, Jan 16 2017, 12:12:55) > > [GCC 6.3.1 20170109] on linux > > Type "help", "copyright", "credits" or "license" for more information. > > >>> import theano > > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled > > Traceback (most recent call last): > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 164, in > > use(config.device) > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 151, in use > > init_dev(device) > > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", > line 60, in init_dev > > sched=config.gpuarray.sched) > > File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init > (pygpu/gpuarray.c:9419) > > File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init > (pygpu/gpuarray.c:9110) > > File "pygpu/gpuarray.pyx", line 1021, in > pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) > > pygpu.gpuarray.GpuArrayException: Unknown device error: -1 > > >>> > > > > [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc > > [global] > > floatX = float32 > > device = cuda > > allow_gc = False > > [lib] > > cnmem=1.0 > > > > > > -- > > > > --- > > 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. > > > -- > Pascal > -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
Are you able to run other CUDA programs on that GPU, for instance devicQuery (source included in cuda SDK)? What does deviceQuery return, vs nvidia-smi? On Thu, Mar 30, 2017, Øystein Schønning-Johansen wrote: > > > Hi all! > > Today I got the 'strange' error message when importing theano. This has > worked perfectly before, > > I've built theano and libgpuarray from git sources. I've even recompiled from > the today's repo code, but I get the same error every time. > > Any hints? > > > Thanks, > > -Øystein > > > [oystein@jupiter libgpuarray-git]$ python > Python 3.6.0 (default, Jan 16 2017, 12:12:55) > [GCC 6.3.1 20170109] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import theano > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled > Traceback (most recent call last): > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line > 164, in > use(config.device) > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line > 151, in use > init_dev(device) > File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line > 60, in init_dev > sched=config.gpuarray.sched) > File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init > (pygpu/gpuarray.c:9419) > File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init > (pygpu/gpuarray.c:9110) > File "pygpu/gpuarray.pyx", line 1021, in > pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) > pygpu.gpuarray.GpuArrayException: Unknown device error: -1 > >>> > > [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc > [global] > floatX = float32 > device = cuda > allow_gc = False > [lib] > cnmem=1.0 > > > -- > > --- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Pascal -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[theano-users] pygpu.gpuarray.GpuArrayException: Unknown device error: -1
Hi all! Today I got the 'strange' error message when importing theano. This has worked perfectly before, I've built theano and libgpuarray from git sources. I've even recompiled from the today's repo code, but I get the same error every time. Any hints? Thanks, -Øystein [oystein@jupiter libgpuarray-git]$ python Python 3.6.0 (default, Jan 16 2017, 12:12:55) [GCC 6.3.1 20170109] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import theano ERROR (theano.gpuarray): Could not initialize pygpu, support disabled Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 164, in use(config.device) File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 151, in use init_dev(device) File "/usr/lib/python3.6/site-packages/theano/gpuarray/__init__.py", line 60, in init_dev sched=config.gpuarray.sched) File "pygpu/gpuarray.pyx", line 614, in pygpu.gpuarray.init (pygpu/gpuarray.c:9419) File "pygpu/gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:9110) File "pygpu/gpuarray.pyx", line 1021, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13472) pygpu.gpuarray.GpuArrayException: Unknown device error: -1 >>> [oystein@jupiter libgpuarray-git]$ cat ~/.theanorc [global] floatX = float32 device = cuda allow_gc = False [lib] cnmem=1.0 -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.