Skip to content

Releases: anderskm/gputil

Windows support, GPU temperature and numpy dep. removed

18 Dec 08:58
Compare
Choose a tag to compare

Added

  • Added automatic detection of nvidia-smi on windows
  • Added GPU temperature
  • Added example for monitoring GPU usage from a separat thread

Removed

  • Removed numpy dependency

Fixed

  • Fixed crashing when GPUs returned by nvidia-smi
  • Fixed potential deadlock when calling nvidia-smi
  • Fixed issue with python v.2 unicode
  • Fixed various spelling errors in readme

Supporting "not supported" fields and GPU exclusion

09 Apr 09:08
Compare
Choose a tag to compare
  • Added support for GPU fields (such as memory and load), which were not supported by the GPU.
  • Added UUID to GPUs.
  • Added support for excluding GPUs based on ID or UUID
  • Added __version__
  • Moved main part of code from __init__.py to GPUtil.py
  • Updated showUtilization() with increased flexibitlity.
  • Updated readme

Correct GPU utilization

09 Feb 13:12
Compare
Choose a tag to compare

A minor, but very important bug has been fixed in regards to calculating the memory utilization, which is used to determined if a GPU is available. The bug meant that in Python 2.X the memory utilization would always show as 0%. Bug was not present in 3.X, as dividing two integers in 3.X are automatically converted to float.

Python 2 support added

09 Feb 13:09
Compare
Choose a tag to compare

Python 2 is now supported!

Renamed to GPUtil and ready for PyPI

09 Feb 13:08
Compare
Choose a tag to compare

Project have been renamed to GPUtil to avoid confusion with the slightly similar GPUstats python script here on github.
The project have also been prepared for PyPI, so that it can easily be installed and upgraded through pip install.

Wait for available GPU

01 Feb 12:54
Compare
Choose a tag to compare

GPUstats

  • Added new functionality to getFirstAvailable(...) to support multiple attempts to find available GPU.
    • Added 4 new input arguments:
      • order - specifies, the ordering of the GPUs. Same functionality as for getAvailable(...)
      • attempts - number of attempts for locating available GPU.
      • interval - interval in seconds between each attempt.
      • verbose - print attempt counter

Improved documentation and examples

16 Jan 21:13
Compare
Choose a tag to compare

GPUstats

  • Same python code as the initial release v1.0.0, but with improved documentation and examples have been added.

Initial release

16 Jan 14:38
Compare
Choose a tag to compare

GPUstats:

  • Get memory usage and utility of all CUDA compatible GPUs using Python (and nvidia-smi)
  • Get the first, last and random available GPU from all available GPUs
  • Example showing how to programmatically only allocate memory on 1 GPU when using TensorFlow