Skip to content

Commit d48398b

Browse files
committed
feat: support AMD XGMI monitoring
1 parent c5f7f69 commit d48398b

5 files changed

Lines changed: 1070 additions & 27 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ categories = ["network-programming", "command-line-utilities"]
1010

1111
[features]
1212
nvlink = ["dep:nvml-wrapper", "dep:nvml-wrapper-sys"]
13+
xgmi = ["dep:libloading"]
1314

1415
[profile.release]
1516
strip = true
@@ -28,3 +29,4 @@ ratatui = "0.30"
2829
crossterm = "0.29"
2930
nvml-wrapper = { version = "0.12.1", optional = true }
3031
nvml-wrapper-sys = { version = "0.9.1", optional = true }
32+
libloading = { version = "0.8", optional = true }

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ mod tui;
88
#[cfg(feature = "nvlink")]
99
mod nvlink;
1010

11+
#[cfg(feature = "xgmi")]
12+
mod xgmi;
13+
1114
use std::io;
1215
use std::time::Instant;
1316

0 commit comments

Comments
 (0)