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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3775298655
Коммит
65a0181a7c
@@ -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);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user