cuDNN v8.0.2 for CUDA 10.2 cudnn.h is incorrect now

I installed cuDNN v8 to my pc.
When i typed ‘cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2’ , nothing printed.
When I entered the couldn.h using vim, it was incorrect.
Please do not use v8 until it solved.

Hi @dkqhzm2,
I suggest you to check if cuDNN is installed correctly.
You can find the cudnn.h at usr/include/cudnn.h
Please refer to the below link.

Thanks!

@dkqhzm2 Version information is in cudnn_version.h since cuDNN 8.

I checked again, and I found out that the contents of cudnn.h are different from v7 and v8.
I knew I shouldn’t just move cudnn.h like v7.
Thank you all!

–Code i used-- Only use version 7 or less.
$ cd folder/extracted/contents
$ sudo cp include/cudnn.h /usr/local/cuda/include
$ sudo cp lib64/libcudnn* /usr/local/cuda/lib64
$ sudo chmod a+r /usr/local/cuda/lib64/libcudnn*

hi @AakankshaS
why is CUDNN_MAJOR not available in cudnn.h for cudnn8?