Skip to content

Commit

Permalink
SWDEV-283942 : Fixed false error report from rocprofiler
Browse files Browse the repository at this point in the history
Change-Id: Ifc6eb0cb26f60a5596e1b626a578135ae9080f26
  • Loading branch information
cyamder committed May 17, 2021
1 parent c684d61 commit 6da2b19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/intercept_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ class InterceptQueue {
std::lock_guard<mutex_t> lck(mutex_);
hsa_status_t status = HSA_STATUS_SUCCESS;

if (GetObj(queue) == nullptr) {
/* This isn't an intercept queue managed by the rocprofiler, call the original function to
destroy this queue. */
return hsa_queue_destroy_fn(queue);
}

if (callbacks_.destroy != NULL) {
status = callbacks_.destroy(queue, callback_data_);
}
Expand Down Expand Up @@ -608,7 +614,7 @@ class InterceptQueue {
assert(queue == obj->queue_);
delete obj;
obj_map_->erase(it);
status = HSA_STATUS_SUCCESS;;
status = HSA_STATUS_SUCCESS;
}
return status;
}
Expand Down

0 comments on commit 6da2b19

Please sign in to comment.