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