mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Catch exceptions and continue during benchmarking.
This commit is contained in:
parent
9d59b462b8
commit
2fd454065f
@ -319,7 +319,16 @@ public:
|
|||||||
{
|
{
|
||||||
std::cout << "*** " << vtkm::testing::TypeName<T>::Name() << " ***************" << std::endl;
|
std::cout << "*** " << vtkm::testing::TypeName<T>::Name() << " ***************" << std::endl;
|
||||||
Benchmarker bench;
|
Benchmarker bench;
|
||||||
bench(Maker(t));
|
try
|
||||||
|
{
|
||||||
|
bench(Maker(t));
|
||||||
|
}
|
||||||
|
catch (std::exception& e)
|
||||||
|
{
|
||||||
|
std::cout << "\n"
|
||||||
|
<< "An exception occuring during a benchmark:\n\t" << e.what() << "\n"
|
||||||
|
<< "Attempting to continue with remaining benchmarks...\n\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user