Commit c1e97c5e authored by Jan Vesely's avatar Jan Vesely

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's avatarJan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
parent 2bac3811
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];
......
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment