(Linux) CUDA distributions used to have a file named version.txt which read, e.g.:
version.txt
CUDA Version 10.2.89
which is quite useful. Howev