1 Reply Latest reply on Jul 14, 2014 7:25 AM by dipak

    OpenCL Compiler Bug




      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:


      [C] OpenCL Compiler Bug - Pastebin.com


      Thank you for any help you can offer towards resolving this bug!

        • Re: OpenCL Compiler Bug


          I was unable to open the link given above. Please can you attach the simple test case here?

          Please let us know your system setup details: CPU, GPU, SDK, Driver, OS (Window/Linux) (32/64) etc. and attach the output of "clinfo" command.