how to find cuda versioin installed ubutnu code example Example 1: check cuda version nvcc --version Example 2: check cuda version python nvcc --version