SWDEV-524849 - Fix HIP error returned during capture (#141)

Always use the latest dependent nodes during hipEventRecord capture

[ROCm/clr commit: 3514f45544]
Bu işleme şunda yer alıyor:
Andryeyev, German
2025-04-03 10:38:25 -04:00
işlemeyi yapan: GitHub
ebeveyn 487ede31a9
işleme 3ceab5ba02
+1 -3
Dosyayı Görüntüle
@@ -409,9 +409,7 @@ hipError_t hipEventRecord_common(hipEvent_t event, hipStream_t stream, unsigned
"[hipGraph] Current capture node EventRecord on stream : %p, Event %p", stream, event);
s->SetCaptureEvent(event);
std::vector<hip::GraphNode*> lastCapturedNodes = s->GetLastCapturedNodes();
if (!lastCapturedNodes.empty()) {
e->SetNodesPrevToRecorded(lastCapturedNodes);
}
e->SetNodesPrevToRecorded(lastCapturedNodes);
if (flags == hipEventRecordExternal) {
hip::GraphNode* pGraphNode;
status = hipGraphAddEventRecordNode((hipGraphNode_t*) pGraphNode, (hipGraph_t) s->GetCaptureGraph(),