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_;