SWDEV-326798 - [ABI Break] Fixes null stream sync behavior

Change-Id: I84ad21f61779145c198dc68bf0fe02a57d34bf64
Этот коммит содержится в:
Sourabh Betigeri
2023-04-26 20:27:11 +00:00
коммит произвёл Rakesh Roy
родитель 15ba5c0004
Коммит 3f88fe850b
3 изменённых файлов: 7 добавлений и 5 удалений
+4 -2
Просмотреть файл
@@ -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) {