6 Replies Latest reply on May 10, 2016 6:42 AM by dipak

    OpenCL Compiler Segmentation fault

    tobias

      The OpenCL kernel below leads to a segmentation fault in libamdocl64.so when compiling (using Linux, APPSDK-3.0)

      void b(void (^f)(void))
      {
        f();
      }
      
      void a(void (^f)(void))
      {
        b( ^{ f(); } );
      }
      
      
      kernel
      void crash()
      {
        a( ^{  } );
      }
      

      I'm guessing this would be allowed in OpenCL 2? (removing the nested block compiles successfully)

       

      edit: add system info in attachment