check if you have cuda installed code example
Example 1: how to check cuda version windows
nvcc --version
Example 2: how to tell if i have cuda installed
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.1\<category>\<sample_name>
nvcc --version
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.1\<category>\<sample_name>