5 Replies Latest reply on Mar 10, 2010 10:13 AM by omkaranathan

    link error

    twiig

      I was recently trying to run a piece of code on a gpu that works fine on my cpu when I received the following error:

       

      Buid Log:
      Internal error: Link failed.
      Make sure the system setup is correct.



      Has anyone else received this error or know where it comes from?

      Thanks!

        • link error
          twiig

          I was able to fix this error.  Turns out to be a problem with << operators.

          • link error
            genaganna

             

            Originally posted by: twiig I was recently trying to run a piece of code on a gpu that works fine on my cpu when I received the following error:

             

            Buid Log: Internal error: Link failed. Make sure the system setup is correct.

             

             

            Has anyone else received this error or know where it comes from?

             

            Thanks!

             

            Please post your kernel code which shows Link failed error so that we can fix in upcoming releases.

              • link error
                twiig

                int bits = ((nextT[0] < nextT[1]) << 2) + ((nextT[0] < nextT[2]) << 1) + (nextT[1] < nextT[2]);

                int cmpToAxis[] = {2, 1, 2, 1, 2, 2, 0, 0};

                int stepAxis = cmpToAxis[bits];

                 

                this is the code that was causing the problems.  I could have a problem with missing something from the OpenCL spec though.

                  • link error
                    genaganna

                     

                    Originally posted by: twiig int bits = ((nextT[0] < nextT[1]) << 2) + ((nextT[0] < nextT[2]) << 1) + (nextT[1] < nextT[2]);

                     

                    int cmpToAxis[] = {2, 1, 2, 1, 2, 2, 0, 0};

                     

                    int stepAxis = cmpToAxis[bits];

                     

                     

                     

                    this is the code that was causing the problems.  I could have a problem with missing something from the OpenCL spec though.

                     

                    what is the datatype of nextT?