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

Always use the latest dependent nodes during hipEventRecord capture
Этот коммит содержится в:
Andryeyev, German authored and GitHub committed 2025-04-03 20:08:25 +05:30
1 родитель 8c6b90996e
Коммит 3514f45544
1 file changed
+1 -3
+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(),