Skip to content

Commit

Permalink
fix non-strict HIP device lib order
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Jul 25, 2024
1 parent 9958e7c commit 48d6ed7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/compiler/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,13 @@ where
.read_dir()
.ok()
.map(|f| {
f.flatten()
let mut device_libs = f
.flatten()
.filter(|f| f.path().extension().map_or(false, |ext| ext == "bc"))
.map(|f| f.path())
.collect()
.collect::<Vec<_>>();
device_libs.sort_unstable();
device_libs
})
.unwrap_or_default()
}
Expand Down

0 comments on commit 48d6ed7

Please sign in to comment.