instances number 1 for derived metrics

Change-Id: Id1cc33811755baeb26e944e9362ab035e528058c
This commit is contained in:
Evgeny
2019-04-04 21:03:15 -05:00
والد 3755d2e7cb
کامیت 66f6affe06
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
+2 -1
مشاهده پرونده
@@ -332,7 +332,7 @@ hsa_status_t CreateQueuePro(
cmd_vec[dev_index].second = CreateEnableCmd(agent_info, cmd_vec[dev_index].first, Profile::LEGACY_SLOT_SIZE_PKT);
}
}
// Enable counters for the queue
rocprofiler::util::HsaRsrcFactory::Instance().Submit(*queue, cmd_vec[dev_index].first, cmd_vec[dev_index].second);
@@ -749,6 +749,7 @@ PUBLIC_API hsa_status_t rocprofiler_iterate_info(
info.metric.name = strdup(name.c_str());
info.metric.description = strdup(descr.c_str());
info.metric.expr = expr.empty() ? NULL : strdup(expr.c_str());
info.metric.instances = 1;
if (expr.empty()) {
// Getting the block name