Skip to content

Instantly share code, notes, and snippets.

@tjumyk
Created May 19, 2020 05:30
Show Gist options
  • Save tjumyk/41e5a06212f4b9a4eec48416a4465094 to your computer and use it in GitHub Desktop.
Save tjumyk/41e5a06212f4b9a4eec48416a4465094 to your computer and use it in GitHub Desktop.
simple bash function for selecting GPU to use for CUDA
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