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

Always use the latest dependent nodes during hipEventRecord capture
Этот коммит содержится в:
Andryeyev, German
2025-04-03 10:38:25 -04:00
коммит произвёл GitHub
родитель 8c6b90996e
Коммит 3514f45544
+1 -3
Просмотреть файл
@@ -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(),