{"id":26756933,"url":"https://github.com/spikehd/gfxinfo","last_synced_at":"2025-03-28T15:22:00.208Z","repository":{"id":283913391,"uuid":"953168525","full_name":"SpikeHD/gfxinfo","owner":"SpikeHD","description":"Cross-platform Rust library for getting all sorts of GPU usage information","archived":false,"fork":false,"pushed_at":"2025-03-23T23:13:47.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T23:16:49.505Z","etag":null,"topics":["gpu","library","rust","utility"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpikeHD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-22T18:15:01.000Z","updated_at":"2025-03-23T23:13:29.000Z","dependencies_parsed_at":"2025-03-23T23:16:51.964Z","dependency_job_id":null,"html_url":"https://github.com/SpikeHD/gfxinfo","commit_stats":null,"previous_names":["spikehd/gpuinfo","spikehd/gfxinfo"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgfxinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgfxinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgfxinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpikeHD%2Fgfxinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpikeHD","download_url":"https://codeload.github.com/SpikeHD/gfxinfo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049753,"owners_count":20715522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpu","library","rust","utility"],"created_at":"2025-03-28T15:21:59.167Z","updated_at":"2025-03-28T15:22:00.202Z","avatar_url":"https://github.com/SpikeHD.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003egfxinfo\u003c/h1\u003e\n  \u003cp\u003e\n    Rust library for querying GPU information\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/SpikeHD/gfxinfo/format.yml?label=code quality\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/SpikeHD/gfxinfo/build.yml?label=build\" /\u003e\n\u003c/div\u003e\n\n# TL;DR\n\n```rust\nuse gfxinfo::active_gpu;\n\nlet gpu = active_gpu();\nprintln!(\"GPU vendor: {}\", gpu.vendor());\nprintln!(\"GPU model: {}\", gpu.model());\nprintln!(\"GPU family: {}\", gpu.family());\nprintln!(\"GPU device ID: {}\", gpu.device_id());\n\n// And with `gpu_info` feature enabled\nlet info = gpu.info();\nprintln!(\"Total VRAM: {} bytes\", info.total_vram());\nprintln!(\"Used VRAM: {} bytes\", info.used_vram());\nprintln!(\"Load: {}%\", info.load_pct());\nprintln!(\"Temperature: {} C\", info.temperature() / 1000);\n```\n\n# Features\n\n* Cross-platform, cross-vendor support\n* Plenty of feature flags\n* Low dependency count\n\n# Feature flags\n\n| Feature | Description | Default |\n| --- | --- | --- |\n| `default` | Enables all features | Yes |\n| `amd` | Enables AMD GPU support | Yes |\n| `nvidia` | Enables Nvidia GPU support | Yes |\n| `intel` | Enables Intel GPU support | Yes |\n| `gpu_info` | Enables the `GpuInfo` trait, which provides query functions for things like VRAM usage | Yes |\n\n# TODO\n\nNothing is final, some things on some platforms are stubbed. PRs are welcome!\n\n(Windows support is speculative, as it uses the Windows API and I don't have a Windows machine to test on. It did work partially in a VM using the basic display driver!)\n\n* [ ] Cross-platform vendor support\n  * [x] Nvidia\n    * [x] Windows\n    * [x] Linux \n  * [x] AMD\n    * [x] Windows\n      * [ ] Use `libloading` to load `atiadlxx.dll` and use those functions\n    * [x] Linux\n  * [ ] Intel\n    * [x] Windows\n      * [ ] Use driver-specific functions, as the Windows API is kinda meh\n    * [ ] Linux\n  * [ ] Generic/Other\n    * [x] Apple/MacOS\n* [ ] Supported information\n  * [x] Vendor\n  * [x] Model\n  * [x] Family\n  * [x] Device ID\n  * [x] Total VRAM\n  * [x] Used VRAM\n  * [x] Load percentage\n  * [x] Temperature","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspikehd%2Fgfxinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspikehd%2Fgfxinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspikehd%2Fgfxinfo/lists"}