SWDEV-496544 - Reset mem alloc node count for AutoFreeOnLaunch.
Change-Id: Ib32b04584548a46632606ecd85b58c6ce4a5894d
This commit is contained in:
@@ -832,6 +832,7 @@ hipError_t GraphExec::Run(hipStream_t graph_launch_stream) {
|
|||||||
if (flags_ & hipGraphInstantiateFlagAutoFreeOnLaunch) {
|
if (flags_ & hipGraphInstantiateFlagAutoFreeOnLaunch) {
|
||||||
if (!topoOrder_.empty()) {
|
if (!topoOrder_.empty()) {
|
||||||
topoOrder_[0]->GetParentGraph()->FreeAllMemory(launch_stream);
|
topoOrder_[0]->GetParentGraph()->FreeAllMemory(launch_stream);
|
||||||
|
topoOrder_[0]->GetParentGraph()->memalloc_nodes_ = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user