SWDEV-385255 - fixes for graph exec with mem pools

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I6f127090904a6c7985992bfaaab928d8b03013f5
This commit is contained in:
sdashmiz
2023-03-06 11:39:14 -05:00
committed by Maneesh Gupta
parent 5ee9e6c8c1
commit d2ea4d3dd4
+1 -1
View File
@@ -574,7 +574,7 @@ hipError_t hipGraphExec::Run(hipStream_t stream) {
if (hip::getStream(stream) == nullptr) {
return hipErrorInvalidResourceHandle;
}
if (flags_ == hipGraphInstantiateFlagAutoFreeOnLaunch) {
if (flags_ & hipGraphInstantiateFlagAutoFreeOnLaunch) {
if (!levelOrder_.empty()) {
levelOrder_[0]->GetParentGraph()->FreeAllMemory();
}