Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 355 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 355 Bytes

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