Created
November 3, 2017 17:22
-
-
Save marnovo/53fa0134d432b1f990377e7c9bd940f1 to your computer and use it in GitHub Desktop.
Selects the right xcode for normal usage or CUDA usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Selects the right xcode for normal usage or CUDA usage | |
PS3='xcode version selector: ' | |
options=("Xcode latest (9.0)" "Xcode 8.3.3 (CUDA)" "Quit") | |
select opt in "${options[@]}" | |
do | |
case $opt in | |
"Xcode latest (9.0)") | |
echo "you chose: Xcode latest (9.0)" | |
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | |
;; | |
"Xcode 8.3.3 (CUDA)") | |
echo "you chose: Xcode 8.3.3 (CUDA)" | |
sudo xcode-select -s /Applications/Xcode_8.3.3.app/Contents/Developer | |
;; | |
"Quit") | |
break | |
;; | |
*) echo invalid option;; | |
esac | |
done | |
cd /Developer/NVIDIA/CUDA-9.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment