I have recently been experimenting with OpenCL, and I am quite sure that I have found a compiler bug.
I get a memory access violation in clBuildProgram.
I only get this access violation if one of my functions (part of my path tracer) has a "return true;" statement.
If I change the value of the return to false, it compiles and runs fine.
This particular return true statement is found towards the end of the intersectsTriangle function (the only return true in the entire function).
Here is my kernel code for the version that crashes:
Thank you for any help you can offer towards resolving this bug!