diff --git a/bin/rpl_run.sh b/bin/rpl_run.sh index 122bced6f9..78edf446b1 100755 --- a/bin/rpl_run.sh +++ b/bin/rpl_run.sh @@ -140,9 +140,9 @@ usage() { echo " --ctx-limit - maximum number of outstanding contexts [0 - unlimited]" echo " --heartbeat - to print progress heartbeats [0 - disabled]" echo "" - echo " --stats - generating kernel executino stats" - echo " --hsa-trace - to trace HSA, generates API execution stats and JSON file viewable in chrome tracing" - echo " --hip-trace - to trace HIP, generates API execution stats and JSON file viewable in chrome tracing" + echo " --stats - generating kernel execution stats, file .stats.csv" + echo " --hsa-trace - to trace HSA, generates API execution stats and JSON file chrome-tracing compatible" + echo " --hip-trace - to trace HIP, generates API execution stats and JSON file chrome-tracing compatible" echo " Generated files: .hsa_stats.txt .json" echo " Traced API list can be set by input .txt or .xml files." echo " Input .txt:" diff --git a/src/core/rocprofiler.cpp b/src/core/rocprofiler.cpp index d976efe498..81e146a003 100644 --- a/src/core/rocprofiler.cpp +++ b/src/core/rocprofiler.cpp @@ -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