#6681·Theano

Theano 1.0.3 issue with pygpu: ERROR (theano.gpuarray): Could not initialize pygpu, support disabled

Author: Wish12Created Jan 21, 2019Updated Mar 21, 2024

Hey guys i am pretty new to Deep Learning and wanted to use Theano to run some neural nets using my gpu. However while trying to run theano with the .theanorc document i run into an issue which i can't really solve I have a RTX 2080 Ti use Anaconda2 with Python2.7 The theano version i am using is 1.0.3 with CUDA 9 and cuDNN v7.4.2 (Dec 14, 2018), for CUDA 9.0

My .theanorc file looks like this [global] floatX = float32 device = cuda

[cuda] root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0

[nvcc] flags = -LC:\Users\lewu7369\Anaconda2\libs compiler_bindir = C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin

fastmath = True

However i get the following error:

import theano C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray\dnn.py:184: UserWarning: Your cuDNN version is more recent than Theano. If you encounter problems, try updating Theano or downgrading cuDNN to a version >= v5 and <= v7. warnings.warn("Your cuDNN version is more recent than " Using cuDNN version 7402 on context None ERROR (theano.gpuarray): Could not initialize pygpu, support disabled Traceback (most recent call last): File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init.py", line 227, in use(config.device) File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init.py", line 214, in use init_dev(device, preallocate=preallocate) File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init_.py", line 159, in init_dev pygpu.blas.gemm(0, tmp, tmp, 0, tmp, overwrite_c=True) File "pygpu\blas.pyx", line 149, in pygpu.blas.gemm File "pygpu\blas.pyx", line 47, in pygpu.blas.pygpu_blas_rgemm GpuArrayException: ('nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION', 3)

Unsing CUDA 8.0 and cuDNN v6.0 (April 27, 2017), for CUDA 8.0 gives the same Error:

import theano Can not use cuDNN on context None: Use cuDNN 7.0.2 or higher for Volta. ERROR (theano.gpuarray): Could not initialize pygpu, support disabled Traceback (most recent call last): File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init.py", line 227, in use(config.device) File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init.py", line 214, in use init_dev(device, preallocate=preallocate) File "C:\Users\lewu7369\Anaconda2\lib\site-packages\theano\gpuarray_init_.py", line 159, in init_dev pygpu.blas.gemm(0, tmp, tmp, 0, tmp, overwrite_c=True) File "pygpu\blas.pyx", line 149, in pygpu.blas.gemm File "pygpu\blas.pyx", line 47, in pygpu.blas.pygpu_blas_rgemm GpuArrayException: ('nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION', 3)