jmyc

&& doesn't work properly

Discussion created by jmyc on Dec 21, 2009
Latest reply on Dec 21, 2009 by genaganna
&& operator does not work with vector types

It seems that && operator does not work properly with vector types. I am unable to compile the attached piece of code (it has no sense that's only an example). The error message is

Error: Building Program (clBuildProgram)

That is strange as the opencl specification (Khronos 1.0.48, p 144, point g) states that && operator should work comonent-wise for all vector types exept float types.

My system: Linux, kernel 2.6.28-16, gcc 4.3.3, CPU AMD64, quad core, GPU: ATI HD4770.

__kernel void qsimKernel(void) { int4 w1,w2 ; int4 w = w1 && w2; }

Outcomes