SWDEV-490864 - Optimize Alloc Node detection in graph

Change-Id: I6ac32f9abd0b44864071a0a9396463cb13f6941f


[ROCm/clr commit: 314d4a2c22]
Ta zmiana jest zawarta w:
Rahul Manocha authored and Rahul Manocha committed 2024-11-01 11:45:49 -04:00
1 rodzic 04628d2d1f
złożenie 5b40eefdac
2 plików zmienionych
+10 -11

Żadne pliki nie pasują do Twojego wyszukiwania

+3 -6
Wyświetl plik
@@ -837,13 +837,10 @@ hipError_t GraphExec::Run(hipStream_t graph_launch_stream) {
// If this is a repeat launch, make sure corresponding MemFreeNode exists for a MemAlloc node
if (repeatLaunch_ == true) {
for (auto& node : topoOrder_) {
if (node->GetType() == hipGraphNodeTypeMemAlloc &&
static_cast<GraphMemAllocNode*>(node)->IsActiveMem() == true) {
return hipErrorInvalidValue;
}
if (topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
return hipErrorInvalidValue;
}
} else {
} else {
repeatLaunch_ = true;
}