By default the cudnn installation would be located /usr/local/cuda/include/ and /usr/local/cuda/lib64/, which are the standard CUDA paths (or would be set via CUDA_HOME). In case your cudnn installation uses a different path, you would most likely need to set the cudnn path manually. In the former case, the manual setting of CUDNN_ROOT is not needed.