Skip to content

Commit

Permalink
Debug device name checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed Jan 28, 2024
1 parent 9bed704 commit 178852c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/correlation/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,13 +947,15 @@ impl Device {
{
1
} else {
println!("{}", device_name.to_lowercase());
10
};
println!("Device score is {} {}", score, dzn_multiplier);
Some((device, device_name, queue_index, score * dzn_multiplier))
})
.max_by_key(|(_device, _name, _queue_index, score)| *score);
let (device, name, queue_index) = if let Some((device, name, queue_index, _score)) = device
{
let (device, name, queue_index) = if let Some((device, name, queue_index, score)) = device {
println!("Score= {}", score);
(device, name, queue_index)
} else {
return Err(GpuError::new("Device not found").into());
Expand Down

0 comments on commit 178852c

Please sign in to comment.