screw

logical operators for build-in vector types

Discussion created by screw on Nov 21, 2009
Latest reply on Nov 23, 2009 by MicahVillmow
logical operators for build-in vector types should applied componet-wise

Hi,

I would like to to use operator && two int4 and expect a int4 as result. I get an error, please see attached message.

Have you any hints?

 

Thanks

screw

 

/tmp/OCLPevl34.cl(373): error: bad argument type to opencl convert_* function: expected src and dst have the same number of elements float4 f = convert_float4(((int4)1) && ((int4)0)); ^

Outcomes