mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
[parallel_inference] added support for parallel inference with timed duration perf test (#10922)
This commit is contained in:
parent
5cbacec854
commit
de06d95096
1 changed files with 3 additions and 1 deletions
|
|
@ -188,7 +188,9 @@ Status PerformanceRunner::RunParallelDuration() {
|
|||
count++;
|
||||
counter++;
|
||||
tpool->Schedule([this, &counter, &m, &cv]() {
|
||||
session_->ThreadSafeRun();
|
||||
auto status = RunOneIteration<false>();
|
||||
if (!status.IsOK())
|
||||
std::cerr << status.ErrorMessage();
|
||||
// Simplified version of Eigen::Barrier
|
||||
std::lock_guard<OrtMutex> lg(m);
|
||||
counter--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue