how to check installed cuda version code example
Example 1: check cuda nn version
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2orcat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
Example 2: how to tell if i have cuda installed
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.1\<category>\<sample_name>