how to find current cuda installation path code example Example 1: how to check cuda version nvcc --version Example 2: check cuda version python nvcc --version