Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall CUDA toolkit #40

Open
JLenzy opened this issue Jul 19, 2024 · 1 comment
Open

Uninstall CUDA toolkit #40

JLenzy opened this issue Jul 19, 2024 · 1 comment
Assignees

Comments

@JLenzy
Copy link

JLenzy commented Jul 19, 2024

Describe the bug
I have previously installed this toolkit using the provided startup script.
Now nvidia-smi shows no connection to the GPU. When I try re-running the installation script I get:

CUDA toolkit already marked as installed

Would there be an easy to way uninstall all related files and do a 'fresh install'? Have tried rebooting the server numerous times as well as running the script manually, with no luck.

Here are the last lines from the logs:

[2024-06-13 21:00:19,435] INFO - Installing prerequisite packages and updating kernel...
[2024-06-14 09:12:35,515] INFO - Switching to working directory: /opt/google/cuda-installer
[2024-06-14 09:12:35,703] INFO - Downloading CUDA installation kit...
[2024-06-14 09:12:35,703] INFO - Executing: sha256sum cuda_12.4.1_550.54.15_linux.run
[2024-06-14 09:13:03,226] INFO - 367d2299b3a4588ab487a6d27276ca5d9ead6e394904f18bccb9e12433b9c4fb  cuda_12.4.1_550.54.15_linux.run
[2024-06-14 09:13:03,226] INFO - Installing CUDA toolkit...
[2024-06-14 09:13:03,227] INFO - Executing: sh cuda_12.4.1_550.54.15_linux.run --silent --toolkit
[2024-06-14 09:15:20,525] INFO - CUDA toolkit installation completed!
[2024-06-14 09:15:20,525] INFO - Executing post-installation actions...
[2024-06-14 09:15:20,527] INFO - CUDA post-installation actions completed!
[2024-06-14 09:15:20,528] INFO - The system needs to be rebooted to complete the installation process. The process will be continued after the reboot.
[2024-06-14 09:15:20,528] INFO - Rebooting now.
[2024-06-14 09:15:20,528] INFO - Executing: reboot now
[2024-06-14 09:15:42,209] INFO - Switching to working directory: /opt/google/cuda-installer
[2024-06-14 09:15:42,237] INFO - CUDA toolkit already marked as installed.
[2024-06-17 14:55:05,142] INFO - Switching to working directory: /opt/google/cuda-installer
[2024-06-17 14:55:05,166] INFO - CUDA toolkit already marked as installed.

Environment

  • Operating system: Debian 5.10.221-1 (2024-07-14) x86_64 GNU/Linux
  • Graphics card: A100 40GB x1

To Reproduce
Steps to reproduce the behavior. A copy-paste of the commands you executed and the output you got. The Linux installation script by default saves its' output to /opt/google/gpu-installer/ - please provide the files you find there.

@m-strzelczyk
Copy link
Collaborator

Hello!

Thanks for reporting the issue. To uninstall CUDA Toolkit as well as driver, you can do the following:

  1. Uninstall CUDA: execute /usr/local/cuda/bin/cuda-uninstaller file to uninstall the CUDA toolkit.
  2. Uninstall the driver using the installation tool: sudo python3 cuda_installer.pyz uninstall_driver
  3. Purge the /opt/google/cuda-installer directory, so the installer tool won't complain that anything is already installed.

Now that you made me research how to uninstall the toolkit, I will implement a uninstall_cuda subcommand to the script, so it's much easier to do for people in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants