convenient script to switch visible Nvidia GPU.
Latest commit ddcb504 Nov 19, 2016 @lanpa committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
LICENSE Initial commit Nov 19, 2016
README.md Update README.md Nov 19, 2016
appendtobash Create appendtobash Nov 19, 2016

README.md

usegpu

A convenient script to switch visible Nvidia GPU.

install

wget https://raw.githubusercontent.com/lanpa/usegpu/master/appendtobash && cat appendtobash>>~/.bashrc
source ~/.bashrc

usage

usegpu 1       # use gpu 1
usegpu 1,2     #usegpu 1 and 2
usegpu 0,2     #usegpu 0 and 2
usegpu         #show current visible gpu