how to know which cuda version is running ubuntu code example Example: how to check cuda version nvcc --version