fix the scenario with timestamps enabled only with rabge enabled

Change-Id: I5c96fdec5e92275b1154208a4c8a1605caa1639f


[ROCm/rocprofiler commit: 13fe0f9f69]
此提交包含在:
Evgeny
2018-10-05 19:32:13 -05:00
父節點 8e873e628b
當前提交 4f7e68ada5
+4 -1
查看文件
@@ -154,7 +154,10 @@ class InterceptQueue {
free(const_cast<char*>(kernel_name));
// Injecting profiling start/stop packets
if ((status != HSA_STATUS_SUCCESS) || (group.context == NULL)) {
if (tracker_entry != NULL) tracker_->Delete(tracker_entry);
if (tracker_entry != NULL) {
const_cast<hsa_kernel_dispatch_packet_t*>(dispatch_packet)->completion_signal = tracker_entry->orig;
tracker_->Delete(tracker_entry);
}
} else {
Context* context = reinterpret_cast<Context*>(group.context);