{"id":63308,"library":"nvml-wrapper","title":"NVML Wrapper","description":"A safe and ergonomic Rust wrapper for the NVIDIA Management Library (NVML), providing access to GPU monitoring and management functions.","status":"active","version":"0.12.1","language":"rust","source_language":null,"source_url":"https://github.com/Cldfire/nvml-wrapper","tags":["nvidia","gpu","monitoring","wrapper","nvml"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nnvml-wrapper = \"0.12.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add nvml-wrapper","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Nvml","correct":"use nvml_wrapper::Nvml;"}],"quickstart":{"code":"use nvml_wrapper::Nvml;\n\nfn main() -> Result<(), Box<dyn std::error::Error>> {\n    let nvml = Nvml::init()?;\n    let device_count = nvml.device_count()?;\n    println!(\"Number of NVIDIA GPUs: {}\", device_count);\n    Ok(())\n}","lang":"rust","description":"Initializes NVML and prints the number of detected NVIDIA GPUs."},"warnings":[{"fix":"Install NVIDIA drivers and NVML (usually included with the driver). On Linux, ensure `libnvidia-ml.so` is in the library path.","message":"Requires the NVIDIA Management Library (NVML) to be installed on the system; otherwise initialization fails.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'access':16 'ergonom':6 'function':22 'gpu':18,24 'librari':13 'manag':12,21 'monitor':19,25 'nvidia':11,23 'nvml':1,14,27 'provid':15 'rust':7 'safe':4 'wrapper':2,8,26","created_at":"2026-06-17T16:42:31.279317+00:00","updated_at":"2026-06-17T16:42:31.279317+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Cldfire/nvml-wrapper","github":"https://github.com/Cldfire/nvml-wrapper","docs":"https://docs.rs/nvml-wrapper/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}