Commit 2fd45406 authored by Allison Vacanti's avatar Allison Vacanti

Catch exceptions and continue during benchmarking.

parent 9d59b462
......@@ -319,7 +319,16 @@ public:
{
std::cout << "*** " << vtkm::testing::TypeName<T>::Name() << " ***************" << std::endl;
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";
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment