SWDEV-413997 - Fixing multiple device cases.

Change-Id: I10ad3fbfca887e92cd81f68392fa1acf753cbd2b
This commit is contained in:
kjayapra-amd
2024-03-15 11:31:19 -04:00
committed by Karthik Jayaprakash
parent 7de7da4016
commit d52d16c8e6
8 changed files with 177 additions and 50 deletions
+1 -4
View File
@@ -320,10 +320,7 @@ bool Memory::create(void* initFrom, bool sysMemAlloc, bool skipAlloc, bool force
}
}
}
// Add a VA range into VA range map
if (getMemFlags() & CL_MEM_VA_RANGE_AMD) {
amd::MemObjMap::AddVirtualMemObj(getSvmPtr(), this);
}
// Store the unique id for each memory allocation
uniqueId_ = ++numAllocs;
return true;