Cannot use cuDNN in context No, fatal error: cudnn.h: No such file or directory

I am trying to configure theano

to use gpu

on my windows machine. I used .theanorc

to use device= gpu

, but when I run some code that gpu is supposed to use, I get the following error:

Can not use cuDNN on context None: cannot compile with cuDNN. We got this error:
c:\users\...\appdata\local\temp\try_flags_pt24sj.c:4:19: fatal error: cudnn.h: No such file or directory
compilation terminated.

Mapped name None to device cuda0: GeForce 840M (0000:03:00.0)

      

I checked my CUDA_PATH=C:\Program Files\NVIDIA\v8.0

GPU Computing Toolkit \ CUDA to see if cudnn.h is there or not and found it atC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include

+3


source to share


1 answer


Fixed this by following the installation guide https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-windows and adding LIBRARY_PATH to the PATH variable (pointing to your CUDA lib folder like C: \ Program Files \ NVIDIA GPU Computing Toolkit \ CUDA \ v9.0 \ lib).



0


source







All Articles