From 584dc895dff067937cf93b5caa1425d6d2e4e9cd Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 9 Dec 2019 11:22:57 -0500
Subject: [PATCH] P4 to Git Change 2042612 by eshcherb@evgeny-hip on 2019/12/09
11:11:38
SWDEV-197289 - HIP-VDI tracing
activity suppressing of type is zero;
fixing callbacks table recursive mutex;
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_prof_api.h#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#101 edit
---
rocclr/runtime/platform/command.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/platform/command.cpp b/rocclr/runtime/platform/command.cpp
index 6611d7abdc..9780b1d37a 100644
--- a/rocclr/runtime/platform/command.cpp
+++ b/rocclr/runtime/platform/command.cpp
@@ -207,7 +207,7 @@ Command::Command(HostQueue& queue, cl_command_type type,
commandWaitBits_(commandWaitBits) {
// Retain the commands from the event wait list.
std::for_each(eventWaitList.begin(), eventWaitList.end(), std::mem_fun(&Command::retain));
- activity_.Initialize(type, queue.vdev()->index(), queue.device().index());
+ if (type != 0) activity_.Initialize(type, queue.vdev()->index(), queue.device().index());
}
void Command::releaseResources() {