SWDEV-522707 - Set phys_mem_handle type to sizeof(size_t) to avoid blocking address range. (#105)

此提交包含在:
Jayaprakash, Karthik
2025-04-29 01:49:16 -04:00
提交者 GitHub
父節點 b2388dfb88
當前提交 6811fd90b8
共有 2 個檔案被更改,包括 11 行新增1 行删除
+4
查看文件
@@ -788,6 +788,10 @@ bool Buffer::create(bool alloc_local) {
return false;
}
// Update the size of memory object to size of handle, since the setting the size to the actual
// physical memory allocated would block the address range during amd::MemObjMap::FindMemObj()
// lookup. This might cause address range issue in virtual address space.
owner()->UpdatePhysMemSize();
owner()->setSvmPtr(reinterpret_cast<void*>(owner()->getUserData().hsa_handle));
return true;