Created
May 19, 2020 05:30
-
-
Save tjumyk/41e5a06212f4b9a4eec48416a4465094 to your computer and use it in GitHub Desktop.
simple bash function for selecting GPU to use for CUDA
This file contains 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
usecuda() | |
{ | |
export CUDA_VISIBLE_DEVICES=$1 | |
echo "Using cuda:$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment