From 9ed39f610769edb7ec74dcd3a3fb8d96f1d54887 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 25 Jan 2018 18:41:08 -0500
Subject: [PATCH] P4 to Git Change 1508214 by gandryey@gera-lnx-rcf on
2018/01/25 18:10:13
SWDEV-142271 - Performance drop is observed in Ocean Surface Simulation of Compubenchcl in 17.50 when compared to 17.Q4.1
- Fix link error in Linux.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#72 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#40 edit
---
rocclr/runtime/device/pal/palvirtual.cpp | 13 -------------
rocclr/runtime/device/pal/palvirtual.hpp | 13 +++++++++++++
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/rocclr/runtime/device/pal/palvirtual.cpp b/rocclr/runtime/device/pal/palvirtual.cpp
index a1d5e2cfd5..014d0e1efa 100644
--- a/rocclr/runtime/device/pal/palvirtual.cpp
+++ b/rocclr/runtime/device/pal/palvirtual.cpp
@@ -204,19 +204,6 @@ void VirtualGPU::Queue::addCmdDoppRef(Pal::IGpuMemory* iMem, bool lastDoppCmd, b
palDoppRefs_.push_back(doppRef);
}
-template
-uint VirtualGPU::Queue::submit(bool forceFlush) {
- cmdCnt_++;
- uint id = cmdBufIdCurrent_;
- bool flushCmd = ((cmdCnt_ > MaxCommands) || forceFlush) && !avoidBarrierSubmit;
- if (flushCmd) {
- if (!flush()) {
- return GpuEvent::InvalidID;
- }
- }
- return id;
-}
-
bool VirtualGPU::Queue::flush() {
// Stop commands building
if (Pal::Result::Success != iCmdBuffs_[cmdBufIdSlot_]->End()) {
diff --git a/rocclr/runtime/device/pal/palvirtual.hpp b/rocclr/runtime/device/pal/palvirtual.hpp
index 58db6192d1..07265462e9 100644
--- a/rocclr/runtime/device/pal/palvirtual.hpp
+++ b/rocclr/runtime/device/pal/palvirtual.hpp
@@ -611,4 +611,17 @@ inline void VirtualGPU::AddKernel(const amd::Kernel& kernel) const {
queues_[MainEngine]->last_kernel_ = &kernel;
}
+template
+uint VirtualGPU::Queue::submit(bool forceFlush) {
+ cmdCnt_++;
+ uint id = cmdBufIdCurrent_;
+ bool flushCmd = ((cmdCnt_ > MaxCommands) || forceFlush) && !avoidBarrierSubmit;
+ if (flushCmd) {
+ if (!flush()) {
+ return GpuEvent::InvalidID;
+ }
+ }
+ return id;
+}
+
/*@}*/} // namespace pal