Add a float option to the kernel

This commit is contained in:
Tom Deakin 2015-07-23 12:12:02 +01:00
parent 99d2fe8526
commit ae7a352809

View File

@ -1,7 +1,11 @@
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#ifdef FLOAT
#define DATATYPE float
#else
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#define DATATYPE double
#endif
#define DATATYPE double
constant DATATYPE scalar = 3.0;