SWDEV-508977 - return error in global capture mode for hipEventQuery (#388)
This commit is contained in:
gecommit door
GitHub
bovenliggende
a0e946c2cc
commit
51dd60a64f
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Verwijs in nieuw issue
Block a user