VK Cloud logo

Removing CUDA components

  1. Connect to the VM with the GPU.

  2. Remove the CUDA components installed from the package manager:

    sudo apt remove --purge -y "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"sudo apt autoremove --purge -y
  3. Run cuda-uninstaller to remove components installed from a file with the *.run extension.

    sudo /usr/local/cuda-*/bin/cuda-uninstaller 2>/dev/null || sudo cuda-uninstaller

    If no installation from a file with the *.run extension was previously performed, the removal process will not start. No further action is required.

Was this article helpful?