/setGPU

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

Primary LanguagePython

setGPU

A small Python library that automatically sets CUDA_VISIBLE_DEVICES to the least-loaded GPU on multi-GPU systems and can be used by:

from setgpu import set_gpu

set_gpu()

Installation

pip install git+https://github.com/datthinh1801/setGPU.git

Dependencies

Licensing

This code is in the public domain.