Make cudnn.h version detection more robust in find_cuda_config.py.
Make cudnn.h version detection more robust in find_cuda_config.py.

This change allows the script to properly parse version specifications like:

#define CUDNN_MAJOR      7
#define CUDNN_MINOR      0
#define CUDNN_PATCHLEVEL 2

PiperOrigin-RevId: 245273662

chemelnucfin/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,jhseu/tensorflow,gunan/tensorflow,jhseu/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,adit-chandra/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,gunan/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,yongtang/tensorflow,jhseu/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,renyi533/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,sarvex/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ghchinoy/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,renyi533/tensorflow,gunan/tensorflow,arborh/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,tensorflow/tensorflow,annarev/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,arborh/tensorflow,petewarden/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,aldian/tensorflow,sarvex/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,ghchinoy/tensorflow,jhseu/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,jhseu/tensorflow,renyi533/tensorflow,gautam1858/tensorflow,renyi533/tensorflow,gunan/tensorflow,xzturn/tensorflow,aldian/tensorflow,aldian/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ghchinoy/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,arborh/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,paolodedios/tensorflow,gunan/tensorflow,aldian/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,gunan/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,Intel-Corporation/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,annarev/tensorflow,tensorflow/tensorflow,aldian/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,DavidNorman/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,jhseu/tensorflow,aam-at/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,alsrgv/tensorflow,karllessard/tensorflow,arborh/tensorflow,jhseu/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,chemelnucfin/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,ppwwyyxx/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,ghchinoy/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,DavidNorman/tensorflow,Intel-Corporation/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,yongtang/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,arborh/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,aldian/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,alsrgv/tensorflow,petewarden/tensorflow,yongtang/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,arborh/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,chemelnucfin/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,yongtang/tensorflow,annarev/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,yongtang/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,aam-at/tensorflow,karllessard/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow