Skip to content

A simple script to test if there is any GPU memory available

Notifications You must be signed in to change notification settings

xrc10/test_cuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test_cuda

A simple script to test if there is any GPU memory available

Usage

For instance, get 2 GPUs with at least 16000Mb memeory:

CUDA_VISIBLE_DEVICES=$(python test_cuda.py 16000 2) python ...

If there is no GPUs available, the process will launch the python code until the requirement is met.

About

A simple script to test if there is any GPU memory available

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages