how to check gpu cuda version code example Example 1: how to check cuda version nvcc --version Example 2: check for cuda version nvidia-smi nvcc --version