From 6d46320dcbf891a15fbe0ce4954afdaf2bfc4a54 Mon Sep 17 00:00:00 2001 From: Gil Pitney Date: Mon, 20 Jul 2015 23:09:24 +0000 Subject: Reduce clGetDeviceInfo() CL_DEVICE_MAX_PARAMTER_SIZE to the minimum value Previous value was 64Kb for max allowable size of parameters to pass to a kernel. This was causing Khronos tests to crash. Now, set to a more sane size: 1024 bytes. This enables the Khronos test: % test_api min_max_parameter_size to PASS. Signed-off-by: Gil Pitney --- src/core/cpu/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cpu/device.cpp b/src/core/cpu/device.cpp index 7876f4a..d8f4ed3 100644 --- a/src/core/cpu/device.cpp +++ b/src/core/cpu/device.cpp @@ -544,7 +544,7 @@ cl_int CPUDevice::info(cl_device_info param_name, break; case CL_DEVICE_MAX_PARAMETER_SIZE: - SIMPLE_ASSIGN(size_t, 65536); + SIMPLE_ASSIGN(size_t, 1024); // This is the minimum break; case CL_DEVICE_MAX_SAMPLERS: -- cgit v1.2.3