Skip to content

Commit

Permalink
scx_utils: fix gpu-topology build
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jan 16, 2025
1 parent 1e99829 commit 7424a3a
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 7424a3a

Please sign in to comment.