• Stars
    star
    106
  • Rank 323,925 (Top 7 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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:

  1. Putting import setGPU before any import that will use a GPU like Torch, TensorFlow, or JAX.
  2. Defining an alias such as alias setGPU='eval $(python3 -m setGPU)' and calling that to set the GPU in the shell before running another program that uses the GPU.

Installation

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

Dependencies

Licensing

This code is in the public domain.

More Repositories

1

dcgan-completion.tensorflow

Image Completion with Deep Learning in TensorFlow
Python
1,308
star
2

densenet.pytorch

A PyTorch implementation of DenseNet.
Python
817
star
3

cv

TeX
397
star
4

latex-templates

Website for personal collection and previewing of LaTeX templates. Presented with Python/Jinja2.
TeX
364
star
5

thesis

Differentiable Optimization-Based Modeling for Machine Learning
TeX
311
star
6

block

An intelligent block matrix library for numpy, PyTorch, and beyond.
Python
294
star
7

dotfiles

♥ Linux, xmonad, emacs, vim, zsh, tmux
Shell
237
star
8

zsh-history-analysis

Plot your .zsh_history.
Python
220
star
9

python-scripts

Short and fun Python scripts.
Python
197
star
10

reading-list

My reading list.
CSS
188
star
11

presentations

TeX
124
star
12

beamer-snippets

Website for personal collection and previewing of Beamer and TikZ snippets. Presented with Python/Jinja2.
TeX
109
star
13

parsec-benchmark

An unofficial mirror of the core PARSEC 3.0 benchmark suite with patches to run on x86_64 Arch Linux and generalize builds.
C
93
star
14

conference-tracker

Minimal-maintenance conference tracker.
Python
71
star
15

girl

Check your GitHub READMEs for broken links.
Scala
70
star
16

bamos.github.io

JavaScript
34
star
17

snowglobe

Haskell-driven, small-scale web analytics with minimal configuration.
Haskell
27
star
18

ecos.torch

Unofficial Torch ECOS bindings to solve linear programs (LPs) and second-order cone programs (SOCPs).
C
16
star
19

gurobi.torch

Unofficial Gurobi Torch bindings.
Lua
9
star
20

shell-scripts

Miscellaneous short shell scripts.
Shell
9
star
21

github-wiki-link-validator

Ensure all links in a Github Wiki point to valid locations within the Wiki.
Python
5
star
22

docker-llvm-polly-pocl

Build LLVM, Polly, and PoCL in an Ubuntu 12.04 Docker container.
Shell
4
star