he tried the first path, the problem is CUDA path is already included, and so the CuDNN headers inside the CUDA include directory are being picked up.
@Chen-Wei_Xie maybe install CUDA to your home directory too, and specify CUDA_HOME=[path-to-cuda]