From 1287a96b3d821c109fec7290be348595aa559fce Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 25 Jul 2017 12:01:02 -0400
Subject: [PATCH] P4 to Git Change 1439116 by jatang@jatang-opencl-hsa-stg1 on
2017/07/25 11:47:36
SWDEV-95919 - Make sure PerfCounters_Start, Kernel_dispatch, and PerfCounters_End are in the same command buffer.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#85 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLPerfCounters.cpp#38 edit
[ROCm/clr commit: 18617446da5362fcf45c7e136077e3ffd2d9af8b]
---
projects/clr/rocclr/runtime/platform/command.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/platform/command.hpp b/projects/clr/rocclr/runtime/platform/command.hpp
index c4b7fd4a8e..91d4f18f82 100644
--- a/projects/clr/rocclr/runtime/platform/command.hpp
+++ b/projects/clr/rocclr/runtime/platform/command.hpp
@@ -897,7 +897,7 @@ class PerfCounterCommand : public Command {
//! Construct a new PerfCounterCommand
PerfCounterCommand(HostQueue& queue, const EventWaitList& eventWaitList,
const PerfCounterList& counterList, State state)
- : Command(queue, 0, eventWaitList), counterList_(counterList), state_(state) {
+ : Command(queue, 1, eventWaitList), counterList_(counterList), state_(state) {
for (uint i = 0; i < counterList_.size(); ++i) {
counterList_[i]->retain();
}