SWDEV-360031 - check for stream capture finish.
- stream capture should be done before any sync APIs.
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I3d65f67ee68777be71f97f48d460ccaefdd4e1af
[ROCm/clr commit: be966acb0c]
This commit is contained in:
@@ -404,6 +404,9 @@ hipError_t hipEventSynchronize(hipEvent_t event) {
|
||||
HIP_RETURN(hipErrorInvalidHandle);
|
||||
}
|
||||
|
||||
if (hip::Stream::StreamCaptureOngoing() == true) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
hip::Event* e = reinterpret_cast<hip::Event*>(event);
|
||||
HIP_RETURN(e->synchronize());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user