| 481 | } |
| 482 | #ifdef ARM_COMPUTE_CL |
| 483 | catch (const ::cl::Error &error) |
| 484 | { |
| 485 | profiler.test_stop(); |
| 486 | if (_log_level >= LogLevel::ERRORS) |
| 487 | { |
| 488 | std::stringstream stream; |
| 489 | stream << "Error code: " << error.err(); |
| 490 | TestError test_error(error.what(), LogLevel::ERRORS, stream.str()); |
| 491 | func_on_all_printers([&](Printer *p) { p->print_error(test_error, is_expected_failure); }); |
| 492 | } |
| 493 | |
| 494 | result.status = TestResult::Status::FAILED; |
| 495 | |
| 496 | if (_throw_errors) |
| 497 | { |
| 498 | throw; |
| 499 | } |
| 500 | } |
| 501 | #endif /* ARM_COMPUTE_CL */ |
| 502 | catch (const std::exception &error) |
| 503 | { |