fix of reported completion signal in th ecase when it is proxied by the tracker

Change-Id: Ic1100fde03bc34e0130405285d32d6b97a031967


[ROCm/rocprofiler commit: 996b64309a]
This commit is contained in:
Evgeny
2019-02-20 19:21:35 -06:00
parent f0c56c1305
commit 33e8160a54
3 changed files with 5 additions and 2 deletions
@@ -138,6 +138,7 @@ class InterceptQueue {
if ((GetHeaderType(packet) == HSA_PACKET_TYPE_KERNEL_DISPATCH) && (dispatch_callback_ != NULL)) {
const hsa_kernel_dispatch_packet_t* dispatch_packet =
reinterpret_cast<const hsa_kernel_dispatch_packet_t*>(packet);
const hsa_signal_t completion_signal = dispatch_packet->completion_signal;
// Adding kernel timing tracker
Tracker::entry_t* tracker_entry = NULL;
@@ -155,6 +156,7 @@ class InterceptQueue {
obj->queue_,
user_que_idx,
obj->queue_id,
completion_signal,
dispatch_packet,
kernel_name,
kernel_symbol,