I created a buffer of cl_host2 and sent to the kernel as float2. Is it possible to cast it to float inside the kernel as follows:
float *converted = (float*)(original_float2);
this should work :
float *converted = (float*)&original_float2;
float x = converted;
float y = converted;
Retrieving data ...