SWDEV-405485 - fix the error to match cuda
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Ia03a50e437c8eb189bc6578170b5ef20b470541c
Cette révision appartient à :
@@ -515,12 +515,9 @@ hipError_t hipStreamWaitEvent_common(hipStream_t stream, hipEvent_t event, unsig
|
||||
"[hipGraph] current capture node StreamWaitEvent on stream : %p, Event %p", stream,
|
||||
event);
|
||||
hipError_t status = hipSuccess;
|
||||
if (event == nullptr) {
|
||||
if (event == nullptr || !hip::isValid(stream)) {
|
||||
return hipErrorInvalidHandle;
|
||||
}
|
||||
if (!hip::isValid(stream)) {
|
||||
return hipErrorContextIsDestroyed;
|
||||
}
|
||||
hip::Stream* waitStream = reinterpret_cast<hip::Stream*>(stream);
|
||||
hip::Event* e = reinterpret_cast<hip::Event*>(event);
|
||||
hip::Stream* eventStream = reinterpret_cast<hip::Stream*>(e->GetCaptureStream());
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur