how to check cuda version on my laptop code example Example 1: cuda version check nvcc --version Example 2: check cuda version cat /usr/local/cuda/version.txt