SWDEV-326798 - Revert "SWDEV-326798 - Changes in stream sync behavior"

This reverts commit 51adec2730.

Reason for revert: HIP tests on windows fails

Change-Id: I795ed19d76a41e2fd9971414cefa5bd3be45d4bc
This commit is contained in:
Sourabh Betigeri
2023-02-28 02:28:12 -05:00
والد 51adec2730
کامیت 08c8972d97
4فایلهای تغییر یافته به همراه14 افزوده شده و 19 حذف شده
+2 -5
مشاهده پرونده
@@ -420,9 +420,8 @@ 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, wait)->finish();
hip::getStream(stream)->finish();
return hipSuccess;
}
@@ -531,9 +530,7 @@ hipError_t hipStreamQuery_common(hipStream_t stream) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
}
bool wait = (stream == nullptr) ? true : false;
hip::Stream* hip_stream = hip::getStream(stream, wait);
hip::Stream* hip_stream = hip::getStream(stream);
amd::Command* command = hip_stream->getLastQueuedCommand(true);
if (command == nullptr) {