SWDEV-528808 - Release all HW queues even if only one is idle (#240)

Pytorch may not explicitly idle each queue. Thus, some queues can be considered as busy,
but have idle state in reality


[ROCm/clr commit: 65a0181a7c]
このコミットが含まれているのは:
Andryeyev, German authored and GitHub committed 2025-05-05 19:09:01 -04:00
1 親 ee91a1e94a
コミット 3ea758a2d4
5ファイル変更
+68 -3

検索条件に一致するファイルはありません

+4 -1
ファイルの表示
@@ -195,10 +195,13 @@ 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 all HW queues, which are idle or nearly idle
vdev()->ReleaseAllHwQueues();
command->release();
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished for host queue : %p", this);
}