Skip to content

Commit

Permalink
Bump sysinfo from 0.32.1 to 0.33.1 (#2771)
Browse files Browse the repository at this point in the history
* Bump sysinfo from 0.32.1 to 0.33.1

Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.32.1 to 0.33.1.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](GuillaumeGomez/sysinfo@v0.32.1...v0.33.1)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix Hip backend name

* Fix refresh kind methods

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Lagrange <[email protected]>
  • Loading branch information
dependabot[bot] and laggui authored Feb 3, 2025
1 parent e0c6419 commit 6b2e66b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 24 deletions.
25 changes: 6 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ uuid = { version = "1.12.1", default-features = false }

libc = "0.2.169"
nvml-wrapper = "0.10.0"
sysinfo = "0.32.1"
sysinfo = "0.33.1"
systemstat = "0.2.3"
tch = "0.15.0"

Expand Down
2 changes: 1 addition & 1 deletion backend-comparison/src/persistence/system_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl BenchmarkSystemInfo {

fn enumerate_cpus() -> Vec<String> {
let system = sysinfo::System::new_with_specifics(
sysinfo::RefreshKind::new().with_cpu(sysinfo::CpuRefreshKind::everything()),
sysinfo::RefreshKind::nothing().with_cpu(sysinfo::CpuRefreshKind::everything()),
);
let cpu_names: HashSet<String> = system
.cpus()
Expand Down
4 changes: 3 additions & 1 deletion crates/burn-train/src/metric/cpu_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ impl CpuUse {
}

fn refresh(sys: &mut System) -> f64 {
sys.refresh_specifics(RefreshKind::new().with_cpu(CpuRefreshKind::new().with_cpu_usage()));
sys.refresh_specifics(
RefreshKind::nothing().with_cpu(CpuRefreshKind::nothing().with_cpu_usage()),
);

let cpus = sys.cpus();
let num_cpus = cpus.len();
Expand Down
4 changes: 2 additions & 2 deletions examples/text-classification/examples/ag-news-train.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ mod cuda {
#[cfg(feature = "hip")]
mod hip {
use crate::{launch, ElemType};
use burn::backend::{Autodiff, HipJit};
use burn::backend::{Autodiff, Hip};

pub fn run() {
launch::<Autodiff<HipJit<ElemType, i32>>>(vec![Default::default()]);
launch::<Autodiff<Hip<ElemType, i32>>>(vec![Default::default()]);
}
}

Expand Down

0 comments on commit 6b2e66b

Please sign in to comment.