aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2015-07-27 23:58:35 +0000
committerGil Pitney <gil.pitney@linaro.org>2015-07-27 23:58:35 +0000
commitc9619d1d796e958d2b6f129db488926b7e270d01 (patch)
tree46fb06a6ec88901b9184d1d14c2ab737e8b6fa62
parentc6da796916767b984700a1e5ed3927b3fe99fd7c (diff)
downloadshamrock-c9619d1d796e958d2b6f129db488926b7e270d01.tar.gz
Update clGetDeviceInfo() for MAX_CONSTANT_ARGS and BUFFER_SIZE
Previously, the values of: CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE and CL_DEVICE_MAX_CONSTANT_ARGS were so large as to cause the Khronos tests to run out of memory and crash LLVM with an assertion. Now, these values have been reduced to the minimum allowed by the spec. This enables the Khronos test: %test_api min_max_constant_args to PASS reliably. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r--src/core/cpu/device.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/cpu/device.cpp b/src/core/cpu/device.cpp
index e88b8eb..c170030 100644
--- a/src/core/cpu/device.cpp
+++ b/src/core/cpu/device.cpp
@@ -609,16 +609,11 @@ cl_int CPUDevice::info(cl_device_info param_name,
break;
case CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:
- // TODO: 1 Gio seems to be enough for software acceleration
-#if defined(__arm__)
- SIMPLE_ASSIGN(cl_ulong, HALF_GIGABYTE);
-#else
- SIMPLE_ASSIGN(cl_ulong, ONE_GIGABYTE);
-#endif
+ SIMPLE_ASSIGN(cl_ulong, 64<<10);
break;
case CL_DEVICE_MAX_CONSTANT_ARGS:
- SIMPLE_ASSIGN(cl_uint, 65536);
+ SIMPLE_ASSIGN(cl_uint, 8);
break;
case CL_DEVICE_LOCAL_MEM_TYPE: