Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edgenai/memonitor

Query CPU and GPU memory information in a portable way.
https://github.com/edgenai/memonitor

Last synced: about 2 months ago
JSON representation

Query CPU and GPU memory information in a portable way.

Awesome Lists containing this project

README

        

# memonitor

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Documentation](https://docs.rs/memonitor/badge.svg)](https://docs.rs/memonitor/)
[![Crate](https://img.shields.io/crates/v/memonitor.svg)](https://crates.io/crates/memonitor)

---

**Memonitor** is a lightweight library that allows querying information from various CPU and GPU devices.
The main purpose is the ability to query memory related information, like how much local memory a device has and how
much is currently available to be allocated.

This is achieved by dynamically loading, if present, various device APIs found in the system, and querying them
directly.
At the moment, the following backends are supported:

- [x] [sysinfo](https://crates.io/crates/sysinfo) (CPU only)
- [x] Vulkan
- [x] CUDA (NVIDIA devices only)
- [ ] ~~Metal (macOS only)~~ (planned [#2](https://github.com/edgenai/memonitor/issues/2))

## Platforms

* Linux
* Windows
* macOS

## Dependencies

* Clang
* CMake