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
Dieser Commit ist enthalten in:
foreman
2018-01-25 18:41:08 -05:00
Ursprung 142e5908ee
Commit 9ed39f6107
2 geänderte Dateien mit 13 neuen und 13 gelöschten Zeilen
@@ -204,19 +204,6 @@ void VirtualGPU::Queue::addCmdDoppRef(Pal::IGpuMemory* iMem, bool lastDoppCmd, b
palDoppRefs_.push_back(doppRef);
}
template <bool avoidBarrierSubmit>
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()) {
@@ -611,4 +611,17 @@ inline void VirtualGPU::AddKernel(const amd::Kernel& kernel) const {
queues_[MainEngine]->last_kernel_ = &kernel;
}
template <bool avoidBarrierSubmit>
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