how to tell ubuntu true version of cuda code example Example 1: check cuda version python nvcc --version Example 2: cuda version nvcc --version