4 releases
0.1.3 | Jul 6, 2021 |
---|---|
0.1.2 | Jun 20, 2021 |
0.1.1 | Jun 19, 2021 |
0.1.0 | Jun 19, 2021 |
#21 in #amd-gpu
22 downloads per month
15KB
240 lines
gpuinfo
A small command-line tool used to query and monitor GPU status.
NOTE: We only support NVIDIA GPU currently, AMD GPU is not yet supported. All contributions are welcome! This is an ongoing project and there might be changes in the future. The tool is tested on Linux. It might also work on macOS and Windows with some features missing.
Usage
$ gpu-info
Options:
-w
,--watch
: Prints GPU information to terminal every second-i
,--interval <interval>
: Prints GPU information to terminal according to given interval (integer seconds)
NOTE: more options are to be added.
Installation
The crate is publicly available at crates.io:
cargo install gpuinfo
Output
[0]: Tesla P100-SXM2-16GB | 60 | 0 % | 1544 / 16280 MB | 37°C | No running processes found
[0]
: PCI_BUS_ID of the GPU. Beware that CUDA might assign different device ID. EnsureCUDA_DEVICE_ORDER
is assignedPCI_BUS_ID
will guarantee bothgpu-info
and CUDA yield the same resultTesla P100-SXM2-16GB
: Name of the GPU60
: Major and minor number of the GPU0 %
: Current GPU utilization rate1544 / 16280 MB
: GPU device memory usage37°C
: GPU temperatureNo running processes found
: Currently running processes on the GPU (note: only processes the user have privilege to access are shown).
License
Dependencies
~5.5MB
~92K SLoC