https://github.com/lichunqiang/gputil
Nvidia GPU toolkit
https://github.com/lichunqiang/gputil
gpu gpu-monitoring nvidia-gpu nvidia-smi
Last synced: 7 months ago
JSON representation
Nvidia GPU toolkit
- Host: GitHub
- URL: https://github.com/lichunqiang/gputil
- Owner: lichunqiang
- License: mit
- Created: 2024-03-08T09:17:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T09:32:04.000Z (over 1 year ago)
- Last Synced: 2025-01-16T09:05:37.429Z (9 months ago)
- Topics: gpu, gpu-monitoring, nvidia-gpu, nvidia-smi
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
# GPUtil
GPUtil: Golang Implementation based on https://github.com/anderskm/gputil (Python Version)
## Overview
This project is a Golang implementation of the functionality provided by https://github.com/anderskm/gputil in Python. It offers some useful features that can help you accomplish specific tasks.
## Features
- Feature 1: List GPU informations
- Feature 2: List processes having compute context on the device## Installation
To install and run this project, follow these steps:
```bash
$ go get -u github.com/lichunqiang/gputil
```## Usage Example
Here is an example code snippet demonstrating the usage of this project:
```go
package mainimport (
"context"
"fmt"
"github.com/lichunqiang/gputil"
)func main() {
ctx := context.Background()
gpus, err := gputil.GetGPUs(ctx)
if err != nil {
panic(err)
}
for _, item := range gpus {
fmt.Println(item.String())
}
}
```## Contribution Guidelines
If you would like to contribute to this project, please follow these steps:
1. Fork the project to your GitHub account.
2. Clone the project to your local machine:
```
git clone https://github.com/lichunqiang/gputil.git
```
3. Create a new branch:
```
git checkout -b feature/your-feature
```
4. Make your modifications and improvements.
5. Commit your changes:
```
git commit -m "Add your commit message"
```
6. Push your changes to the remote repository:
```
git push origin feature/your-feature
```
7. Create a Pull Request and wait for review and merge.## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).