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
Tento commit je obsažen v:
@@ -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) {
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele