SWDEV-231701 - Remove amd::memory->svm_ptr from MemObj, instead of the ptr to the object.
Change-Id: I5aab450a2320cfa5417c284e2a8454102df6f99d
[ROCm/clr commit: 9ff22151d2]
Этот коммит содержится в:
коммит произвёл
Karthik Jayaprakash
родитель
a0fbc8fd08
Коммит
5593475c37
@@ -2026,7 +2026,12 @@ hipError_t hipIpcCloseMemHandle(void* dev_ptr) {
|
||||
}
|
||||
|
||||
/* Remove the memory from MemObjMap */
|
||||
amd::MemObjMap::RemoveMemObj(amd_mem_obj);
|
||||
if (amd_mem_obj->getSvmPtr() != nullptr) {
|
||||
amd::MemObjMap::RemoveMemObj(amd_mem_obj->getSvmPtr());
|
||||
} else {
|
||||
DevLogPrintfError("Does not have SVM or Host Mem for 0x%x, crash here!", dev_ptr);
|
||||
guarantee(false);
|
||||
}
|
||||
|
||||
/* detach the memory */
|
||||
if (!device->IpcDetach(*amd_mem_obj)){
|
||||
|
||||
Ссылка в новой задаче
Block a user