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
Αυτή η υποβολή περιλαμβάνεται σε:
sdashmiz authored and Shadi Dashmiz committed 2023-01-16 13:09:24 -05:00
1 γονέας 338307ef2c
υποβολή be966acb0c
5 files changed
+43 -1

No files matched your search

@@ -518,6 +518,10 @@ hipError_t hipDeviceSynchronize ( void ) {
HIP_RETURN(hipErrorOutOfMemory);
}
if (hip::Stream::StreamCaptureOngoing() == true) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
queue->finish();
hip::Stream::syncNonBlockingStreams(hip::getCurrentDevice()->deviceId());