mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Only trigger skipping of outstanding benchmarks on KeyboardInterrupt exception, on others benchmakr is to continue execution
This commit is contained in:
@@ -99,7 +99,16 @@ struct benchmark_wrapper_t
|
||||
}
|
||||
catch (const py::error_already_set &e)
|
||||
{
|
||||
throw nvbench::stop_runner_loop(e.what());
|
||||
if (e.matches(PyExc_KeyboardInterrupt))
|
||||
{
|
||||
// interrupt execution of outstanding instances
|
||||
throw nvbench::stop_runner_loop(e.what());
|
||||
}
|
||||
else
|
||||
{
|
||||
// re-raise
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user