SWDEV-485904 - Fix virtual,physical mem obj leaks

Change-Id: Ie0456b5dcfec206ae54a6aabfc2a15a620cac693


[ROCm/clr commit: 870842201d]
Этот коммит содержится в:
Anusha GodavarthySurya
2024-09-17 15:13:23 +00:00
коммит произвёл Maneesh Gupta
родитель d5c396e820
Коммит f278ac9ea0
5 изменённых файлов: 24 добавлений и 24 удалений
+3 -1
Просмотреть файл
@@ -456,7 +456,9 @@ Memory::~Memory() {
}
hostMemRef_.deallocateMemory(context_());
if (getMemFlags() & CL_MEM_VA_RANGE_AMD) {
amd::MemObjMap::RemoveVirtualMemObj(getSvmPtr());
if (parent_ == nullptr) {
amd::MemObjMap::RemoveVirtualMemObj(getSvmPtr());
}
// If runtime executes graph mempool with VM, then VA can be mapped in space
// for graph validation logic during execution. And the reason it's not unmaped
// in graph itself because the app can have a graph without a free node