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,8 +319,17 @@ public:
|
||||
{
|
||||
std::cout << "*** " << vtkm::testing::TypeName<T>::Name() << " ***************" << std::endl;
|
||||
Benchmarker bench;
|
||||
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";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template <class MakerFunctor, class TypeList>
|
||||
|
Loading…
Reference in New Issue
Block a user