From af3ed0fcf1bf088b802465d54c7403ef0bbb54d6 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Tue, 11 Jun 2024 14:48:42 +0000 Subject: [PATCH] SWDEV-461702 - Disable interprocess for >3GBs local memory due to PAL failure. Change-Id: I211d4de2e04a45148b92d256378516d2f79e210a [ROCm/clr commit: c03ccdb9b9e9e53ab9a1439df07967dac896e6ff] --- projects/clr/rocclr/device/pal/paldevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/rocclr/device/pal/paldevice.cpp b/projects/clr/rocclr/device/pal/paldevice.cpp index fcbe91aea4..aa9ef1dfce 100644 --- a/projects/clr/rocclr/device/pal/paldevice.cpp +++ b/projects/clr/rocclr/device/pal/paldevice.cpp @@ -1684,6 +1684,10 @@ pal::Memory* Device::createBuffer(amd::Memory& owner, bool directAccess) const { } } params.interprocess_ = (owner.getMemFlags() & ROCCLR_MEM_INTERPROCESS) ? true : false; + // Disable interprocess for >3GBs local memory due to PAL failure. + if ((type == Resource::Local || type == Resource::Persistent) && owner.getSize() > 3 * Gi) { + params.interprocess_ = false; + } if (owner.ipcShared()) { type = Resource::IpcMemory; }