Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for temp, clock and power metrics #26

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

msaroufim
Copy link

@msaroufim msaroufim commented Dec 7, 2022

Fixes #20

How it looks

(nvp) ubuntu@ip-172-31-17-70:~/nvgpu$ python
Python 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:49:35) 
[GCC 10.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nvgpu
>>> nvgpu.gpu_info()
[{'index': '0', 'type': 'Tesla V100-SXM2-16GB', 'uuid': 'GPU-67292d02-b6e0-e1fe-e3ce-7ceec71a6781', 'mem_used': 0, 'mem_total': 16384, 'mem_used_percent': 0.0, 'clock': 'N/A', 'temp': '25C', 'pow_used': '23W', 'pow_total': '300W'}]

I also had a separate issue I needed to fix. The current setup will fail with a pandoc error

To repro

cd nvgpu
pip install -e .

@msaroufim msaroufim changed the title Fixed broken setup.py Add support for temp, clock and power metrics Dec 7, 2022
@bzamecnik
Copy link
Collaborator

There's an issue with setuptools-markdown: msabramo/setuptools-markdown#21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How can I get other stats from the API?
2 participants