2
0

SWDEV-326798 - Changes in stream sync behavior

Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b
Este cometimento está contido em:
Sourabh Betigeri
2022-09-09 16:45:48 -07:00
cometido por Aakash Sudhanwa
ascendente a69db9b426
cometimento 51adec2730
4 ficheiros modificados com 19 adições e 14 eliminações
+5 -2
Ver ficheiro
@@ -420,8 +420,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;
}
@@ -530,7 +531,9 @@ 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) {