diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp index 91369c631a..9bed8fadd8 100644 --- a/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/rocclr/runtime/device/gpu/gpudevice.cpp @@ -542,7 +542,7 @@ void Device::fillDeviceInfo( } #endif info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ * - std::min(GPU_MAX_ALLOC_PERCENT, 100u) / 100u); + std::min(GPU_SINGLE_ALLOC_PERCENT, 100u) / 100u); //! \note Force max single allocation size. //! 4GB limit for the blit kernels and 64 bit optimizations. @@ -554,7 +554,7 @@ void Device::fillDeviceInfo( info_.globalMemSize_ = (std::min(maxHeapSize, 100u) * calAttr.localRAM / 100u) * Mi; - uint maxAllocSize = flagIsDefault(GPU_MAX_ALLOC_PERCENT) ? 25 : GPU_MAX_ALLOC_PERCENT; + uint maxAllocSize = flagIsDefault(GPU_SINGLE_ALLOC_PERCENT) ? 25 : GPU_SINGLE_ALLOC_PERCENT; info_.maxMemAllocSize_ = cl_ulong(info_.globalMemSize_ * std::min(maxAllocSize, 100u) / 100u); } diff --git a/rocclr/runtime/utils/flags.hpp b/rocclr/runtime/utils/flags.hpp index a32e4132aa..93676d48a2 100644 --- a/rocclr/runtime/utils/flags.hpp +++ b/rocclr/runtime/utils/flags.hpp @@ -116,7 +116,7 @@ release(bool, GPU_IMAGE_DMA, true, \ "Enable DRM DMA for image transfers") \ release(uint, CPU_MAX_ALLOC_PERCENT, 25, \ "Maximum size of a single allocation in MiB") \ -release(uint, GPU_MAX_ALLOC_PERCENT, 75, \ +release(uint, GPU_SINGLE_ALLOC_PERCENT, 75, \ "Maximum size of a single allocation as percentage of total") \ release(uint, GPU_NUM_COMPUTE_RINGS, 2, \ "GPU number of compute rings. 0 - disabled, 1 , 2,.. - the number of compute rings") \