From de06d950964d76285d6a3b4048604e63b68333b8 Mon Sep 17 00:00:00 2001 From: soundarthiaga <90360019+soundarthiaga@users.noreply.github.com> Date: Fri, 18 Mar 2022 19:05:28 -0700 Subject: [PATCH] [parallel_inference] added support for parallel inference with timed duration perf test (#10922) --- onnxruntime/test/perftest/performance_runner.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/onnxruntime/test/perftest/performance_runner.cc b/onnxruntime/test/perftest/performance_runner.cc index 0ee91ee05f..f84dc1b464 100644 --- a/onnxruntime/test/perftest/performance_runner.cc +++ b/onnxruntime/test/perftest/performance_runner.cc @@ -188,7 +188,9 @@ Status PerformanceRunner::RunParallelDuration() { count++; counter++; tpool->Schedule([this, &counter, &m, &cv]() { - session_->ThreadSafeRun(); + auto status = RunOneIteration(); + if (!status.IsOK()) + std::cerr << status.ErrorMessage(); // Simplified version of Eigen::Barrier std::lock_guard lg(m); counter--;