So, I have an openCL program where some of the variables are in float2 and some are in double2. And I would like to either raise or lower these variables, but I'm not sure how to do this. I tried to explicitly sketch it, as usual, for float and double, but that didn't work.
float2 a,b; double2 c,d; a = (float2)(c+d);
Perhaps I do not understand the type of "float2" and "double2", can someone tell me how to distinguish them in order to work correctly?
Thanks in advance.
source share