declare opencl data type in host

Hi forum

i am defining data type as follows:

float2 *field = NULL;

in the host .

I am getting compilation error mentioning that undefined float2

Any idea?


In host code, the vector data types are prefixed with “cl_”. So, a float2 on the device is a cl_float2 on the host.