cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

jmyc
Journeyman III

&& doesn't work properly

&& 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; }

0 Likes
1 Reply
genaganna
Journeyman III

Jmyc,

        This has been fixed internally. Thank you for reporting this.

0 Likes