Skip to content

Commit

Permalink
Merge pull request #2470 from subspace/gemini-3g-backport-fix-compila…
Browse files Browse the repository at this point in the history
…tion-without-numa

Gemini 3g backport: fix compilation without `numa` feature
  • Loading branch information
nazar-pc committed Jan 29, 2024
2 parents 8bbdfbd + d09dec6 commit d81f1c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/subspace-farmer/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::thread_pool_manager::{PlottingThreadPoolManager, PlottingThreadPoolPa
use futures::channel::oneshot;
use futures::channel::oneshot::Canceled;
use futures::future::Either;
use hwlocality::object::types::ObjectType;
use rayon::{ThreadBuilder, ThreadPool, ThreadPoolBuildError, ThreadPoolBuilder};
use std::future::Future;
use std::num::{NonZeroUsize, ParseIntError};
Expand Down Expand Up @@ -223,7 +222,7 @@ pub fn all_cpu_cores() -> Vec<CpuCoreSet> {
Ok(topology) => {
let cpu_cores = topology
// Iterate over groups of L3 caches
.objects_with_type(ObjectType::L3Cache)
.objects_with_type(hwlocality::object::types::ObjectType::L3Cache)
// For each NUMA nodes get CPU set
.filter_map(|node| node.cpuset())
// For each CPU set extract individual cores
Expand Down

0 comments on commit d81f1c9

Please sign in to comment.