Change-Id: Ic2a26d782bf8889afc89c6497c76fd241df8d221
Этот коммит содержится в:
Evgeny committed 2018-08-24 21:07:45 -05:00
1 родитель e3d7028fe8
Коммит 8c423d9a31
3 files changed
+34 -12

No files matched your search

+6 -1
Просмотреть файл
@@ -160,13 +160,18 @@ class Context {
queue_(queue),
hsa_rsrc_(&util::HsaRsrcFactory::Instance()),
api_(hsa_rsrc_->AqlProfileApi()),
metrics_(NULL),
handler_(handler),
handler_arg_(handler_arg)
{
if (info_count == 0) return;
if (info_count == 0) {
set_.push_back(Group(agent_info_, this, 0));
return;
}
metrics_ = MetricsDict::Create(agent_info);
if (metrics_ == NULL) EXC_RAISING(HSA_STATUS_ERROR, "MetricsDict create failed");
if (Initialize(info, info_count) == false) {
fprintf(stdout, "\nInput metrics out of HW limit. Proposed metrics group set:\n"); fflush(stdout);
MetricsGroupSet(agent_info, info, info_count).Print(stdout);
-1
Просмотреть файл
@@ -181,7 +181,6 @@ class InterceptQueue {
void* context_handler_arg = NULL;
rocprofiler_handler_t context_handler_fun = context->GetHandler(&context_handler_arg);
tracker_->Enable(tracker_entry, context_handler_fun, context_handler_arg);
rocprofiler_close(context);
}
}
}