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]
Tento commit je obsažen v:
1 rodič
4f74c83b94
revize
42a08627ef
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());
|
||||
|
||||
Reference in new issue
Zablokovat Uživatele