Implement NVML for NVIDIA GPU Stats (#6359)

* nvml

* black...black...black...

* small fix for avoid errors on strange GPUs and old drivers

* fix type errors

* fix type errors

* fix unittest process crash

where the tests for tests?..

* it's impossible to mock low-level library

* fix double % for other GPU types

* remove space before gpu statistic values
This commit is contained in:
Sergey Krashevich
2023-05-05 02:02:01 +03:00
committed by GitHub
parent ef50af03f2
commit 0fcfcb85ab
4 changed files with 58 additions and 55 deletions

View File

@@ -11,6 +11,7 @@ peewee == 3.15.*
peewee_migrate == 1.7.*
psutil == 5.9.*
pydantic == 1.10.*
git+https://github.com/fbcotter/py3nvml#egg=py3nvml
PyYAML == 6.0
pytz == 2023.3
tzlocal == 4.3