cat  /usr/local/cuda/version.txt

或者

nvcc -V