Skip to content

lanpa/CUDA_VISIBLE_DEVICES-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

convenient script to switch visible Nvidia GPU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages