Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/autoai-incubator/powermeter
https://github.com/autoai-incubator/powermeter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/autoai-incubator/powermeter
- Owner: autoai-incubator
- Created: 2021-07-07T14:28:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T11:29:29.000Z (over 3 years ago)
- Last Synced: 2024-10-10T09:28:08.325Z (3 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-green-ai - GPU Meter - black?style=flat&logo=linux) ![GPU](https://img.shields.io/badge/GPU-black?style=flat&logo=nvidia) (🛠Tools / Code-Based Tools)
- green-ai - [Source code
README
# GPU Meter
Power Consumption Meter for NVIDIA GPUs.
## Installation
```
pip3 install gpumeter
```## Usage
```python
# Import the Meter
from gpumeter import Meter# Initialize with Interval (Seconds)
m = Meter(20) # Get power status per 20 seconds.# Stop after the time-consuming task finished.
m.stop()# It will output:
> Total Consumed: 8047.28 Wh
> Your Badge is Ready! See https://img.shields.io/badge/Power%20Consumption-8047.28%20Wh-green
```