SWDEV-524849 - Fix HIP error returned during capture (#141)
Always use the latest dependent nodes during hipEventRecord capture
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8c6b90996e
Коммит
3514f45544
@@ -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(),
|
||||
|
||||
Ссылка в новой задаче
Block a user