slundberg / setGPU

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setGPU

A small Python library that automatically sets CUDA_VISIBLE_DEVICES to the least-loaded GPU on multi-GPU systems.

  • Installation: pip install setGPU
  • Usage: import setGPU before any import that will use a GPU like torch or tensorflow.

Dependencies

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.


Languages

Language:Python 100.0%