SWDEV-326798 - Changes in stream sync behavior
Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b
Este cometimento está contido em:
cometido por
Aakash Sudhanwa
ascendente
a69db9b426
cometimento
51adec2730
@@ -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) {
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador