SWDEV-387810 - Fixes to verify if the current stream matches the capture stream
- invalid to synchronize or query the execution status of a capturing stream but non-capturing streams can. - If any local thread has an ongoing or concurrent capture sequence initiated with hipStreamCaptureModeGlobal, it is prohibited from unsafe calls Change-Id: Ifa641e807216d3b7c3e8c2fb1be2f7a50bd641df
This commit is contained in:
zatwierdzone przez
Maneesh Gupta
rodzic
300ba5b1f1
commit
7809d2846b
@@ -518,7 +518,7 @@ hipError_t hipDeviceSynchronize ( void ) {
|
||||
HIP_RETURN(hipErrorOutOfMemory);
|
||||
}
|
||||
|
||||
if (hip::Stream::StreamCaptureOngoing() == true) {
|
||||
if (hip::Stream::StreamCaptureOngoing(reinterpret_cast<hipStream_t>(stream)) == true) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user