I’m developing a software that is capable of running calculations either on a CUDA-capable or non-CUDA-capable GPU. Since, to my knowledge, CUDA can only be installed on a computer with a CUDA-capable GPU and I cannot know for certain that my customer will have such a computer.
Thus, how can I check if CUDA is installed from within my installer?
I guess I can make a bat file with “where nvcc” and “nvcc --version” and extract the version. Is that the only way?