{"repo":"rust-nvml/nvml-wrapper","free":true,"listed":false,"github":"https://github.com/rust-nvml/nvml-wrapper","clone":"git clone https://github.com/rust-nvml/nvml-wrapper.git","description":"Safe Rust wrapper for the NVIDIA Management Library","language":"Rust","stars":210,"topics":["nvml","nvidia","gpu","monitoring","library","ffi","ffi-bindings","ffi-wrapper","hardware-management","hardware-monitoring"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"nvml-wrapper A safe and ergonomic Rust wrapper for the [NVIDIA Management Library][nvml] (NVML), a C-based programmatic interface for monitoring and managing various states within NVIDIA GPUs. try the basic usage example on your system NVML is intended to be a platform for building 3rd-party applications, and is also the underlying library for NVIDIA's nvidia-smi tool. Usage nvml-wrapper builds on top of generated bindings for NVML that make use of the [ libloading ][libloading] crate. This means the NVML library gets loaded upon calling Nvml::init and can return an error if NVML isn't present, making it possible to drop NVIDIA-related features in your code at runtime on systems that don't have relevant hardware. Successful execution of Nvml::init means: The NVML library was present on the system and able to be opened The function symbol to initialize NVML was loaded and called successfully An attempt has been made to load all other NVML function symbols Every function you call thereafter will individually return an error if it couldn't be loaded from the NVML library during the Nvml::init call. Note that it's not advised to repeatedly call Nvml::init as the constructor has to perform all the work of loading the function symbols from the library each time it gets called. Instead, call Nvml::init once and store the resulting Nvml instance somewhere to be accessed throughout the lifetime of your program (perhaps in a [ once cell ][once cell]). NVML Support This wrapper is being","default_branch":null,"files":null,"tree":[],"storefront":"/r/rust-nvml","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rust-nvml/nvml-wrapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}