cudnn problem

im trynig to run the vgg on python.

C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda\cuda_ndarray.cuh(17): warning C4005: ‘PyString_Check’: macro redefinition
C:\Users\hanan\Anaconda3\lib\site-packages\numpy\core\include\numpy/npy_3kcompat.h(71): note: see previous definition of ‘PyString_Check’
C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda\cuda_ndarray.cuh(18): warning C4005: ‘PyString_FromString’: macro redefinition
C:\Users\hanan\Anaconda3\lib\site-packages\numpy\core\include\numpy/npy_3kcompat.h(73): note: see previous definition of ‘PyString_FromString’
C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda\cuda_ndarray.cuh(19): warning C4005: ‘PyString_AsString’: macro redefinition
C:\Users\hanan\Anaconda3\lib\site-packages\numpy\core\include\numpy/npy_3kcompat.h(80): note: see previous definition of ‘PyString_AsString’
C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda\cuda_ndarray.cuh(20): warning C4005: ‘PyString_FromStringAndSize’: macro redefinition
C:\Users\hanan\Anaconda3\lib\site-packages\numpy\core\include\numpy/npy_3kcompat.h(74): note: see previous definition of ‘PyString_FromStringAndSize’
C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda\cuda_ndarray.cuh(21): warning C4005: ‘PyString_Size’: macro redefinition
C:\Users\hanan\Anaconda3\lib\site-packages\numpy\core\include\numpy/npy_3kcompat.h(82): note: see previous definition of ‘PyString_Size’
mod.cu(77): error: identifier “cudnnSetFilterNdDescriptor_v4” is undefined

1 error detected in the compilation of “C:/cygwin64/tmp/tmpxft_000006ac_00000000-13_mod.cpp1.ii”.
Found 1831 images belonging to 2 classes.
mod.cu

[‘nvcc’, ‘-shared’, ‘-O3’, ‘-arch=sm_35’, ‘-Xlinker’, ‘/DEBUG’, ‘-D HAVE_ROUND’, ‘-m64’, ‘-Xcompiler’, ‘-DCUDA_NDARRAY_CUH=m18715462c72ed6afcd7ca5d52813ce9 0,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD’, ‘-I"C:\Users\hanan\AppData\Local\Theano\compiledir_Windows-10-10.0.16299-SP0-Intel64_Family_6 _Model_142_Stepping_9_GenuineIntel-3.6.3-64\cuda_ndarray"’, ‘-I"C:\Users\hanan\Anaconda3\lib\site-packages\theano\sandbox\cuda"’, ‘-I"C:\Users\h anan\Anaconda3\lib\site-packages\numpy\core\include"’, ‘-I"C:\Users\hanan\Anaconda3\include"’, ‘-I"C:\Users\hanan\Anaconda3\lib\site-package s\theano\gof"’, ‘-L"C:\Users\hanan\AppData\Local\Theano\compiledir_Windows-10-10.0.16299-SP0-Intel64_Family_6_Model_142_Stepping_9_GenuineIntel-3.6 .3-64\cuda_ndarray"’, ‘-L"C:\Users\hanan\Anaconda3\libs"’, ‘-L"C:\Users\hanan\Anaconda3"’, ‘-o’, ‘C:\Users\hanan\AppData\Local\Theano\compile dir_Windows-10-10.0.16299-SP0-Intel64_Family_6_Model_142_Stepping_9_GenuineIntel-3.6.3-64\tmp39fkm8el\md48cd7c806151b0105e1fa2b573cc03b.pyd’, ‘mod.cu’, ’ -lcudart’, ‘-lcublas’, ‘-lcuda_ndarray’, ‘-lcudnn’, ‘-lpython36’]

why that happen??

my guess would be that the CUDNN version you have installed (or that is being found by the compilation/linking process) doesn’t match the version your code is expecting.