SWDEV-405485 - fix the error to match cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ia03a50e437c8eb189bc6578170b5ef20b470541c
Cette révision appartient à :
sdashmiz
2023-06-27 09:31:30 -04:00
révisé par Shadi Dashmiz
Parent 09345dc7a2
révision 41bbdfca94
+1 -4
Voir le fichier
@@ -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());