SWDEV-405485 - fix the error to match cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ia03a50e437c8eb189bc6578170b5ef20b470541c
Tento commit je obsažen v:
sdashmiz authored and Shadi Dashmiz committed 2023-06-27 15:01:14 -04:00
1 rodič 09345dc7a2
revize 41bbdfca94
1 file changed
+1 -4
+1 -4
Zobrazit soubor
@@ -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());