SWDEV-508977 - return error in global capture mode for hipEventQuery (#388)

This commit is contained in:
Belton-Schure, Aidan
2025-05-22 18:47:57 +01:00
gecommit door GitHub
bovenliggende a0e946c2cc
commit 51dd60a64f
+3
Bestand weergeven
@@ -479,6 +479,9 @@ hipError_t ihipEventQuery(hipEvent_t event) {
s->SetCaptureStatus(hipStreamCaptureStatusInvalidated);
HIP_RETURN(hipErrorCapturedEvent);
}
if (hip::Stream::StreamCaptureOngoing(e->GetCaptureStream())) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
return e->query();
}