Commit 36544d1b authored by shssf's avatar shssf Committed by Robert Kimball

IntelGPU backend: Fix profile data for nbench (#1931)

parent dc4320af
......@@ -1648,12 +1648,15 @@ vector<runtime::PerformanceCounter>
const string primitive_name = convert_cldnn_names(func, p.first);
size_t usec = 0;
for (const auto& q : p.second.get_profiling_info())
{
if (q.name == string("executing"))
{
usec += chrono::duration_cast<
chrono::duration<int64_t, chrono::milliseconds::period>>(
chrono::duration<size_t, chrono::milliseconds::period>>(
q.value->value())
.count();
}
}
const runtime::PerformanceCounter perf_counter(primitive_name.c_str(), usec, 1);
rc.push_back(perf_counter);
}
......
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