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 authored and Maneesh Gupta committed 2023-04-05 10:52:04 +00:00
1 parent 5ee9e6c8c1
commit d2ea4d3dd4
1 file changed
+1 -1
+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();
}