Gputil

Latest version: v1.4.0

Safety actively analyzes 621724 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.4.0

**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

1.3.0

* 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

1.2.3

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.

1.2.2

Python 2 is now supported!

1.2.0

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`.

1.1.0

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

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.