Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ setGPU Public
forked from bamos/setGPU

Small Python library to automatically set CUDA_VISIBLE_DEVICES to the least loaded device on multi-GPU systems.

Notifications You must be signed in to change notification settings

li-js/setGPU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

setGPU

A small Python library that automatically sets CUDA_VISIBLE_DEVICES to the most vacant GPU (in terms of memory usage) on multi-GPU systems.

  • Installation: pip install git+https://github.com/li-js/setGPU.git@master
  • Usage: import setGPU before any import that will use a GPU like torch or tensorflow.

Dependencies

  • Jongwook Choi's gpustat library. It can be installed by pip install gpustat

Licensing

This code is in the public domain.

About

Small Python library to automatically set CUDA_VISIBLE_DEVICES to the least loaded device on multi-GPU systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%