SWDEV-326798 - [ABI Break] Fixes null stream sync behavior
Change-Id: I84ad21f61779145c198dc68bf0fe02a57d34bf64
[ROCm/clr commit: 3f88fe850b]
这个提交包含在:
1 父节点
6abb81112d
当前提交
5d160eb7ee
3 个文件已更改
+7
-5
没有与搜索条件相匹配的文件
@@ -441,8 +441,9 @@ hipError_t hipStreamSynchronize_common(hipStream_t stream) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
}
|
||||
bool wait = (stream == nullptr) ? true : false;
|
||||
// Wait for the current host queue
|
||||
hip::getStream(stream)->finish();
|
||||
hip::getStream(stream, wait)->finish();
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
@@ -572,7 +573,8 @@ hipError_t hipStreamQuery_common(hipStream_t stream) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
}
|
||||
hip::Stream* hip_stream = hip::getStream(stream);
|
||||
bool wait = (stream == nullptr) ? true : false;
|
||||
hip::Stream* hip_stream = hip::getStream(stream, wait);
|
||||
|
||||
amd::Command* command = hip_stream->getLastQueuedCommand(true);
|
||||
if (command == nullptr) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户