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.
1686 Discussions

barrier and driver crash.

LLess
Beginner
255 Views

Hi,

Today I used the barrier call for the fist time and it was causing a crash of the graphic driver (HD4000, Win7 x64, 9.17.10.2932) (Lucky for me Win7 was able to restart it nicely every time).

The issue was that I had a barrier inside an IF statement and that not all work items were taking the branch.

Now, it would be good in the offline compiler was able to at least raise a warning about that if not an error actually.

After moving the barrier my kernel worked fixing the code, so no big deal here but just to let you know.

Ideally the kernel compilation should detect that before crashing the driver :)

Laurent.

0 Kudos
1 Reply
Raghupathi_M_Intel
255 Views

Laurent,

Thanks for the suggestion. The optimization guide clearly mentions the pitfalls of using barriers in branchy code. Though it is a nice idea for the tools to WARN about potential problems, I am not sure if such a capability is beyond what Kernel Builder can offer. If you have more suggestion please do post here. I will gather all the feedback and talk to the product team.

Thanks,
Raghu

Reply