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
Этот коммит содержится в:
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) {