I have the same error. I did both conda commands to install libgpuarray and pygpu, and both seemed to be installed successfully. However, I get this:
In [8]: import theano ERROR:theano.gpuarray:Could not initialize pygpu, support disabled Traceback (most recent call last): File "c:\Theano\theano\gpuarray\__init__.py", line 164, in <module> use(config.device) File "c:\Theano\theano\gpuarray\__init__.py", line 151, in use init_dev(device) File "c:\Theano\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:9415) File "pygpu\gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init (pygpu/ gpuarray.c:9106) File "pygpu\gpuarray.pyx", line 1021, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13468) GpuArrayException: Error loading library: -1 Also, I can import pygpu, but when I run tests, I get this: In [1]: import pygpu In [2]: pygpu.test() pygpu is installed in C:\Anaconda\lib\site-packages\pygpu NumPy version 1.12.1 NumPy relaxed strides checking option: True NumPy is installed in C:\Anaconda\lib\site-packages\numpy Python version 2.7.13 |Anaconda 2.2.0 (64-bit)| (default, Dec 19 2016, 13:29 :36) [MSC v.1500 64 bit (AMD64)] nose version 1.3.7 EEEEEE ====================================================================== ERROR: Failure: RuntimeError (No test device specified. Specify one using the DEVICE or GPUARRAY_TEST_DEVICE environment variables.) I'm using Theano 0.9.0 on Windows 10, and here's my theanorc file: [cuda] root=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin [nvcc] flags=-LC:\Anaconda\libs fastmath=True compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin [global] device = cuda floatX = float32 warn_float64=warn int_division=raise print_active_device = True optimizer_including = cudnn allow_gc = False assert_no_cpu_op=warn warn.round=False [lib] cnmem = 0.4 [dnn] enabled = True On Monday, March 13, 2017 at 6:00:39 AM UTC-7, 侠贵族 wrote: > > No, it's not useful. My .theanorc file is > [global] > floatx = float32 > cxx = C:\Users\Song\Miniconda3\Library\mingw-w64\bin\g++.exe > mode = FAST_RUN > device = cuda > > [blas] > ldflags = -LC:\Users\Song\Miniconda3\Library\bin -lmkl_rt > > [gcc] > cxxflags = -LC:\Users\Song\Miniconda3\Library\mingw-w64\include > -LC:\Users\Song\Miniconda3\Library\mingw-w64\lib -lm > > [cuda] > root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0 > > [nvcc] > flags=--cl-version=2015 > > [dnn] > enabled=True > > [lib] > cnmem=0.70 > > the error is: > > ERROR (theano.gpuarray): Could not initialize pygpu, support disabled > Traceback (most recent call last): > File > "C:\Users\Song\Miniconda3\lib\site-packages\theano\gpuarray\__init__.py", > line 164, in <module> > use(config.device) > File > "C:\Users\Song\Miniconda3\lib\site-packages\theano\gpuarray\__init__.py", > line 151, in use > init_dev(device) > File > "C:\Users\Song\Miniconda3\lib\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:9211) > File "pygpu\gpuarray.pyx", line 566, in pygpu.gpuarray.pygpu_init > (pygpu/gpuarray.c:8902) > File "pygpu\gpuarray.pyx", line 1021, in > pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13264) > pygpu.gpuarray.GpuArrayException: Error loading library: -1 > > > > 在 2017年3月10日星期五 UTC+8上午4:18:07,Gábor Borbély写道: >> >> Dear 侠贵族 , >> >> Maybe you can try to set the cuda root: >> >> http://deeplearning.net/software/theano/library/config.html#config.config.cuda.root >> >> cheers >> gaebor >> >> 2017. február 28., kedd 8:18:57 UTC+1 időpontban 侠贵族 a következőt írta: >> >>> It's not useful. I have copied cuDNN lib include and bin files to >>> CUDA-8.0. And set [dnn] enabled=True, [lib] cnmem=0.70. >>> >>> With "device = gpu", It's successfully showing >>> Using gpu device 0: GeForce GTX 670 (CNMeM is enabled with initial size: >>> 70.0% of memory, cuDNN 5110) >>> With "device =cuda", the error is same. >>> >>> >>> 在 2017年2月27日星期一 UTC+8下午8:42:31,Kiuhnm Mnhuik写道: >>>> >>>> You can try disabling cuDnn: >>>> >>>> http://deeplearning.net/software/theano_versions/0.9.X/library/config.html#config.config.dnn.enabled >>>> Basically, add >>>> [dnn] >>>> enabled=False >>>> to .theanorc. >>>> >>>> On Monday, February 27, 2017 at 10:36:41 AM UTC+1, 侠贵族 wrote: >>>>> >>>>> I did not install cuDnn. Dose the new cuda backend must need it? >>>> >>>> -- --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
