From 649f1872d9b07a066db3ea4a61015f4e76ccd92a Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Fri, 23 Oct 2020 12:31:48 -0400 Subject: [PATCH] SWDEV-254181 - Fix ocl min_max_image_buffer_size regression. ROCr is now reporting the actual HW addressing limits for HIP, so OpenCL will have to impose lower limit. Change-Id: I60c2ce27ed1d1f45f16fb76438965a236ba872c6 [ROCm/clr commit: 1da0fe4263f60769cdbd7a88343348ee42f273e9] --- projects/clr/rocclr/device/rocm/rocdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index c9378d0ceb..1877dae238 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -1363,7 +1363,7 @@ bool Device::populateOCLDeviceConstants() { &image_max_dim)) { return false; } - info_.imageMaxBufferSize_ = image_max_dim[0]; + info_.imageMaxBufferSize_ = (amd::IS_HIP) ? image_max_dim[0] : (1 << 27); info_.imagePitchAlignment_ = 256;