SWDEV-523824 - Fix data validation issue of rocFFT (#154)

Fix data validation issue of rocFFT when dynamic queue on.
ReleaseHwQueue() can be called only when no command in HostQueue.
The checking condition need be protected by lock.

[ROCm/clr commit: 18d191fd1d]
Dieser Commit ist enthalten in:
Sang, Tao
2025-04-08 20:30:06 -04:00
committet von GitHub
Ursprung d4275741ba
Commit 60a1e6dbc1
@@ -192,12 +192,10 @@ void HostQueue::finish(bool cpu_wait) {
device_.removeFromActiveQueues(this);
lastEnqueueCommand_->release();
lastEnqueueCommand_ = nullptr;
vdev()->ReleaseHwQueue(); // we can only release HwQueue when no commmand in quque.
}
}
}
// Release HW queue to the pool for dynamic management if enabled
vdev()->ReleaseHwQueue();
command->release();
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished for host queue : %p", this);
}