SWDEV-241977 [ROCm QA] Random Soft hang observed while running TF and Caffe2 benchmarks

Change-Id: I42016c11db15411b86e7b8130d6ba557bc22dbb7
这个提交包含在:
Alex Xie 编写, Subodh Gupta 于 2020-07-22 02:03:48 -04:00 提交
1 父节点 48690f29e9
当前提交 ce038f3163
2 个文件已更改
+7 -9

没有与搜索条件相匹配的文件

+7 -8
查看文件
@@ -50,14 +50,10 @@ bool HostQueue::terminate() {
Command* marker = nullptr;
// Send a finish if the queue is still accepting commands.
{
ScopedLock sl(queueLock_);
if (thread_.acceptingCommands_) {
marker = new Marker(*this, false);
if (marker != nullptr) {
append(*marker);
queueLock_.notify();
}
if (thread_.acceptingCommands_) {
marker = new Marker(*this, false);
if (marker != nullptr) {
append(*marker);
}
}
if (marker != nullptr) {
@@ -186,8 +182,10 @@ void HostQueue::append(Command& command) {
command.retain();
command.setStatus(CL_QUEUED);
ScopedLock l(lastCmdLock_);
ScopedLock l2(queueLock_);
queue_.enqueue(&command);
if (!IS_HIP) {
queueLock_.notify();
return;
}
// Set last submitted command
@@ -196,6 +194,7 @@ void HostQueue::append(Command& command) {
}
lastEnqueueCommand_ = &command;
lastEnqueueCommand_->retain();
queueLock_.notify();
}
bool HostQueue::isEmpty() {