Skip to content

Commit

Permalink
Print message to inform user an error is handled gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
wingertge committed Aug 17, 2024
1 parent 3fec002 commit 76df6e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cubecl-runtime/src/tune/tuner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ impl<K: AutotuneKey> Tuner<K> {
catch_unwind(AssertUnwindSafe(|| {
TuneBenchmark::new(operation, client.clone()).run()
}))
.map_err(ManuallyDrop::new)
.map_err(|e| {
println!("Caught error while benchmarking, falling back to next operation.");
ManuallyDrop::new(e)
})
}
#[cfg(not(feature = "std"))]
Ok(TuneBenchmark::new(operation, client.clone()).run())
Expand Down

0 comments on commit 76df6e4

Please sign in to comment.