fix the scenario with timestamps enabled only with rabge enabled

Change-Id: I5c96fdec5e92275b1154208a4c8a1605caa1639f
This commit is contained in:
Evgeny
2018-10-05 19:32:13 -05:00
parent 3443b09c49
commit 13fe0f9f69
+4 -1
View File
@@ -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);