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.
This commit is contained in:
Sang, Tao authored and GitHub committed 2025-04-08 20:30:06 -04:00
1 parent b006380ff6
commit 18d191fd1d
1 file changed
+1 -3
+1 -3
View File
@@ -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);
}