SWDEV-326798 - [ABI Break] Fixes null stream sync behavior
Change-Id: I84ad21f61779145c198dc68bf0fe02a57d34bf64
Этот коммит содержится в:
коммит произвёл
Rakesh Roy
родитель
15ba5c0004
Коммит
3f88fe850b
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user