[MAC] How to uninstall Nvidia CUDA (here 8.x & 9.x) on OS X 10.12.6 Sierra

According to http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#uninstall 

running just

sudo /usr/bin/uninstall_cuda_drv.pl

should be enough to uninstall any version of NVidia’s CUDA driver, but … it fails (there’s no such file at all)!
So, I went through the following steps semi-manually to remove it successfully:

sudo /Developer/NVIDIA/CUDA-8.0/bin/uninstall_cuda_8.0.pl
sudo /Developer/NVIDIA/CUDA-9.0/bin/uninstall_cuda_9.0.pl
sudo rm -rf /System/Library/Extensions/CUDA.kext
sudo rm -rf /Library/Frameworks/CUDA.framework
sudo rm -rf /Library/LaunchAgents/com.nvidia.CUDASoftwareUpdate.plist
sudo rm -rf /Library/PreferencePanes/CUDA/Preferences.prefPane
sudo rm -rf /System/Library/StartupItems/CUDA
sudo rm -rf /Developer/NVIDIA/CUDA*
sudo rm -rf /usr/local/cuda

Restart your system and “right-click” and remove the CUDA preference icon in the system control app.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.