Skip to content

Commit

Permalink
Merge pull request #1210 from devnexen/scx_utils_build_fix
Browse files Browse the repository at this point in the history
scx_utils: fix gpu-topology build
  • Loading branch information
htejun authored Jan 16, 2025
2 parents 1e99829 + 7424a3a commit 8313b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/scx_utils/src/topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl Topology {
#[cfg(feature = "gpu-topology")]
pub fn gpus(&self) -> BTreeMap<GpuIndex, &Gpu> {
let mut gpus = BTreeMap::new();
for node in &self.nodes {
for (_, node) in &self.nodes {
for (idx, gpu) in &node.gpus {
gpus.insert(idx.clone(), gpu);
}
Expand Down

0 comments on commit 8313b75

Please sign in to comment.