Changing the conditional statement :
if( a == 0.0f )
if( fabs(a) < 1e-7 )
solves the error. Strange!
I've tried that and it is solved.
But the problem is not the kernel but the compiler. i think even if there is only some text in the cl file , there is no reason for a compiler to crash.
Actually this simple kernel could compile with a little modification. But in our project , we've got 3k lines of code in cl file. And compiler crashed too( it won't crash with the bate2 version sdk) It's not easy to find a way to skip the error.
And i think the most straightful way to solve this is to find the reason for the problem but not to modify the kernel.
Thanks for ur attension!!
We have traked the issue and it is fixed internally. Thanks for reporting it and the fix will appear in a soon to be released refresh.