SWDEV-362372 - Correct error code.
Change-Id: Ife4f6e3481d0e804e676fe076f0928870c6bae57
[ROCm/clr commit: 4ac87c051d]
This commit is contained in:
committad av
Maneesh Gupta
förälder
b997937c50
incheckning
ac5c6ad299
@@ -506,14 +506,10 @@ hipError_t hipStreamWaitEvent_common(hipStream_t stream, hipEvent_t event, unsig
|
||||
return hipErrorInvalidHandle;
|
||||
}
|
||||
|
||||
if (flags != 0) {
|
||||
if (flags != 0 || !hip::isValid(stream)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
if (!hip::isValid(stream)) {
|
||||
return hipErrorContextIsDestroyed;
|
||||
}
|
||||
|
||||
hip::Event* e = reinterpret_cast<hip::Event*>(event);
|
||||
return e->streamWait(stream, flags);
|
||||
}
|
||||
|
||||
Referens i nytt ärende
Block a user