SWDEV-333557 - 1.Add support for IPC memory to enable hipIpcGetMemHandle() and hipIpcOpenMemHandle() in PAL path. Set interprocess flag for device allocations in HIP PAL. 2.Fix PAL IPC path with ResourceCache and SubAllocation 3.Minor fixes for IpcBuffer constructor and IpcAttach 4.Remove redundant checks that may go wrong

Change-Id: Ie9d99847c7c2c7b3b2aaefaaf60d23bf71b68635
Bu işleme şunda yer alıyor:
Todd tiantuo Li
2023-06-30 03:33:21 -07:00
ebeveyn 6b89980fb2
işleme 8434feed16
5 değiştirilmiş dosya ile 25 ekleme ve 13 silme
+5
Dosyayı Görüntüle
@@ -2266,6 +2266,11 @@ void* Device::svmAlloc(amd::Context& context, size_t size, size_t alignment, cl_
constexpr bool kForceAllocation = true;
alignment = std::max(alignment, static_cast<size_t>(info_.memBaseAddrAlign_));
if (amd::IS_HIP) {
//set interprocess for IPC memory support
flags |= ROCCLR_MEM_INTERPROCESS;
}
amd::Memory* mem = nullptr;
freeCPUMem_ = false;
if (nullptr == svmPtr) {