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: 18617446da]
Этот коммит содержится в:
foreman
2017-07-25 12:01:02 -04:00
родитель fef9954845
Коммит 1287a96b3d
+1 -1
Просмотреть файл
@@ -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();
}