Skip to content

Comments

Add default option to reset CUDA environment in switch-cuda.sh#5

Open
YipKo wants to merge 4 commits intophohenecker:masterfrom
YipKo:master
Open

Add default option to reset CUDA environment in switch-cuda.sh#5
YipKo wants to merge 4 commits intophohenecker:masterfrom
YipKo:master

Conversation

@YipKo
Copy link

@YipKo YipKo commented Apr 15, 2025

Description

This PR enhances the switch-cuda.sh script by introducing a default option, which resets the CUDA-related environment variables and restores the system’s default CUDA setup (as determined by the /usr/local/cuda symbolic link).

Changes

  • Added support for source switch-cuda.sh default to:

    • Remove CUDA paths from PATH and LD_LIBRARY_PATH

    • Unset CUDA_HOME and CUDA_ROOT

  • Updated README.md

Example usage

$ source switch-cuda.sh default
CUDA environment has been reset to default.

YipKo added 4 commits April 15, 2025 17:56
add default version restore functionality, support switching back to the system default CUDA environment
usage: source switch-cuda.sh default
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

Successfully merging this pull request may close these issues.

1 participant