SWDEV-541427 - Fix forked stream joining to parent stream that is not origin stream(BeginCaptureStream) (#449)

Co-authored-by: Anusha GodavarthySurya <Anusha.GodavarthySurya@amd.com>
Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
Co-authored-by: Godavarthy Surya, Anusha <agodavar@amd.com>
This commit is contained in:
systems-assistant[bot]
2025-09-11 16:57:33 +05:30
zatwierdzone przez GitHub
rodzic 0647cf1d28
commit 3e1e2408a9
+3 -1
Wyświetl plik
@@ -490,7 +490,9 @@ hipError_t hipStreamWaitEvent_common(hipStream_t stream, hipEvent_t event, unsig
if (waitStream == nullptr) {
return hipErrorInvalidHandle;
}
if (!waitStream->IsOriginStream()) {
// Dont set when forked stream joins back to the parent
if (!waitStream->IsOriginStream() &&
waitStream != reinterpret_cast<hip::Stream*>(eventStream->GetParentStream())) {
waitStream->SetCaptureGraph((eventStream)->GetCaptureGraph());
waitStream->SetCaptureId((eventStream)->GetCaptureID());
waitStream->SetCaptureMode((eventStream)->GetCaptureMode());