diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2015-03-27 19:32:45 -0400 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2015-03-30 13:54:52 -0400 |
commit | c1e97c5e87bd1f654e5722ab8c214d80d62ff675 (patch) | |
tree | cafd85e9fa9eedb613780375ddc110e4e98ac0de | |
parent | 2bac38119622667e3a6dff16905dcdec7bed8e86 (diff) |
cl: Enable required extension before using double type
Fixes failures on OCL-1.1 implementations that provide cl_khr_fp64
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | generated_tests/cl/store/store-kernels-global.inc | 4 | ||||
-rw-r--r-- | generated_tests/cl/store/store-kernels-local.inc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/generated_tests/cl/store/store-kernels-global.inc b/generated_tests/cl/store/store-kernels-global.inc index b6220d0e3..ae9b74e77 100644 --- a/generated_tests/cl/store/store-kernels-global.inc +++ b/generated_tests/cl/store/store-kernels-global.inc @@ -1,9 +1,9 @@ -typedef TYPE type_t; - #if TYPE == double #pragma OPENCL EXTENSION cl_khr_fp64 : enable #endif +typedef TYPE type_t; + kernel void store_global(global type_t *out, global type_t *in) { out[0] = in[0]; out[1] = in[1]; diff --git a/generated_tests/cl/store/store-kernels-local.inc b/generated_tests/cl/store/store-kernels-local.inc index b3265f402..6692e3761 100644 --- a/generated_tests/cl/store/store-kernels-local.inc +++ b/generated_tests/cl/store/store-kernels-local.inc @@ -1,9 +1,9 @@ -typedef TYPE type_t; - #if TYPE == double #pragma OPENCL EXTENSION cl_khr_fp64 : enable #endif +typedef TYPE type_t; + kernel void store_local(global type_t *out, global type_t *in) { local type_t local_data[8]; size_t id = get_local_id(0); |