OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1722 Discussions

what looks like a boolean expression bug

ABoxe
Beginner
670 Views

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?

 

 

 

0 Kudos
2 Replies
ABoxe
Beginner
670 Views

Update: you can find a reproducer here:

https://github.com/boxerab/roger

checkout branch simple_bdy, and run the x64 configuration.

Note: you will need OpenCV installed.

 

The sample image is that of a baboon. If you run it, you can see aliasing effects

in the image, particularly around the eyes and bridge of nose.

 

Look for a comment discussing "aliasing effects". If you uncomment the next line ( which should be equivalent to 

leaving it commented) then the aliasing effects go away.

0 Kudos
ABoxe
Beginner
670 Views

never mind, I found a bug in my kernel. Problem solved.

0 Kudos
Reply