diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-07-20 23:09:24 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-07-20 23:12:00 +0000 |
commit | 6d46320dcbf891a15fbe0ce4954afdaf2bfc4a54 (patch) | |
tree | 3786df181115f1da01467f76336c9fed4eecfc90 | |
parent | 2091e81b5db36054644e2816e32beccf946a2f09 (diff) |
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 <gil.pitney@linaro.org>
-rw-r--r-- | src/core/cpu/device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: |