SWDEV-558849 - keep the lastEnqueueCommand_ when PAL backend is enabled (#2320)

This commit is contained in:
Ioannis Assiouras
2025-12-23 21:24:09 +00:00
committed by GitHub
parent c2c4d4c1f5
commit 49b8900158
2 changed files with 1 additions and 3 deletions
@@ -220,7 +220,7 @@ void HostQueue::finish(bool cpu_wait) {
// Under Windows runtime can't destroy objects in the callback thread.
// Also runtime should force interrupt before any destroy. Hence, if it was just gpu wait,
// then keep the lastEnqueueCommand_ for the interrupt handling.
if (IS_LINUX || cpu_wait) {
if (IS_LINUX || cpu_wait || GPU_ENABLE_PAL != 0) {
lastEnqueueCommand_->release();
lastEnqueueCommand_ = nullptr;
}