Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

what looks like a boolean expression bug

$
0
0

I am running the latest sdk, targetting the CPU. ( core i7 Q720)

My work group X-dimension  is 128.

I have an expression

    bool doWrite = (get_local_id(0) >= 0) && (get_local_id(0) < 128);

which should always equal true. However, when I run my kernel this is not true.

I see this because my results differ when I simply set doWrite equal to true.

Any ideas?

 

 

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>