提交 a4f019e7 编写于 作者: M Megvii Engine Team

fix(mgb/atlas): fix issue with profiling on Atlas

GitOrigin-RevId: fbae81940de3a33b329ddb7f2bc9514e9af2fd66
上级 5ba76637
......@@ -157,6 +157,12 @@ std::shared_ptr<json::Object> GraphProfiler::to_json() const {
auto&& event = kern_ev.second;
auto&& start = m_start_of_time->at(comp_node);
event.end->host_wait();
//! every event needs to be synchronized on the atlas to ensure that the event
//! completes ???
#if MGB_ATLAS
event.kern->host_wait();
event.start->host_wait();
#endif
opr_prof[comp_node.to_string()] = Object::make({
{"start", Number::make(start->elapsed_time_until(*event.start))},
{"kern", Number::make(start->elapsed_time_until(*event.kern))},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册