SWDEV-508977 - return error in global capture mode for hipEventQuery (#388)
[ROCm/clr commit: 51dd60a64f]
This commit is contained in:
committed by
GitHub
parent
1a36230bf2
commit
5d4ae6346e
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user