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:
sdashmiz
2022-10-03 15:13:37 -04:00
committed by Shadi Dashmiz
parent 4f74c83b94
commit 42a08627ef
5 changed files with 43 additions and 1 deletions
+3
View File
@@ -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());
}