Removing CUDA components
-
Connect to the VM with the GPU.
-
Remove the CUDA components installed from the package manager:
Ubuntu/DebianRed Hat Enterprise Linuxsudo apt remove --purge -y "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"sudo apt autoremove --purge -y -
Run
cuda-uninstallerto remove components installed from a file with the*.runextension.sudo /usr/local/cuda-*/bin/cuda-uninstaller 2>/dev/null || sudo cuda-uninstallerIf no installation from a file with the
*.runextension was previously performed, the removal process will not start. No further action is required.
Was this article helpful?