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

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

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