-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scx_utils: cleanup gpu topology part #1211
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide some details in the commit message about the cleanup that was done? Was it related to coding style, warnings, refactoring? Thanks.
5adebfa
to
413f0d1
Compare
rust/scx_utils/src/topology.rs
Outdated
@@ -270,9 +270,9 @@ 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.nodea.values() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I just forgot to test gpu-topology build before committing
413f0d1
to
705bff7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less indentation = more good
code using more modern construct to replace simple match patterns mostly, simplifying loops.
705bff7
to
24d023c
Compare
code using more modern construct to replace simple match patterns
mostly, simplifying loops.