From cd7034c9bb2b20806723be000cde555fefdbf89b Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Thu, 8 Dec 2022 19:37:30 +0000 Subject: [PATCH] SWDEV-370537 - PAL does 64kb alignment so no need to do it in runtime. Reverting alignment to 4kb. Change-Id: If3eaac65bf63bb9b8b73a3cad1bb34d357f1adeb --- rocclr/device/pal/palresource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rocclr/device/pal/palresource.cpp b/rocclr/device/pal/palresource.cpp index aa239f934e..8074cfeec6 100644 --- a/rocclr/device/pal/palresource.cpp +++ b/rocclr/device/pal/palresource.cpp @@ -1078,8 +1078,7 @@ bool Resource::CreatePinned(CreateParams* params) { // ================================================================================================ bool Resource::CreateSvm(CreateParams* params, Pal::gpusize svmPtr) { const bool isFineGrain = (memoryType() == RemoteUSWC) || (memoryType() == Remote); - size_t allocSize = amd::alignUp(desc().width_ * elementSize_, - dev().properties().gpuMemoryProperties.fragmentSize); + size_t allocSize = amd::alignUp(desc().width_ * elementSize_, MaxGpuAlignment); if (isFineGrain) { Pal::SvmGpuMemoryCreateInfo createInfo = {}; createInfo.isUsedForKernel = desc_.isAllocExecute_;