Results 1 to 4 of 4

Thread: anonymous_jit_identity exception

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    9

    anonymous_jit_identity exception

    Hey,

    I got a anonymous_jit_identity exception when building my program. In my kernel I use one function that I use twice. If I comment out one function call, the excpetion disappears...Someone knows how to deal with the anonymous_jit_identity, I cannot debug my code, so thats a big problem. And I'm getting those strange exceptions almost all the time...

    Thanks

  2. #2
    Junior Member
    Join Date
    Nov 2009
    Posts
    8

    Re: anonymous_jit_identity exception

    i just had exactly the same problem here.

    my code worked before, but then i added a new function. then the code didn't compile. even if i removed the newly added function, the code didn't compile.

    i read back the compiling information, it says this:

    retrieving binary for 'anonymous_jit_identity', for gpu='sm_11', usage mode='

    the problem is that, i removed almost everything from my code and only left an empty entry function like this:

    the code still doesn't compile and gives the same error. i don't understand.

    Code :
    __kernel void VectorAdd(int iNumElements)
    {
    };

    can anybody help me?

    i'm using macbook with nv9400 under windows xp.

    thanks.

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    8

    Re: anonymous_jit_identity exception

    i tried to replace the "matrixmul.cl" demo code with my "problematic" opencl code, and it does compile!

    so now i guess the problem is somewhere in my c++ code.

    i don't understand.

    i also tried the same c++ project under windows vista with 8800 gtx, same problem.

  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    8

    Re: anonymous_jit_identity exception

    i found the problem.

    can't believe it was so stupid.

    Code :
    ciErr1 = clBuildProgram(cpProgram, 0, NULL, NULL, NULL, NULL);
        shrLog(LOGBOTH, 0, "clBuildProgram...\n");
     
     if (ciErr1 != CL_SUCCESS)
        {...}

    i used this code to compile the program, however, i missed the line " if (ciErr1 != CL_SUCCESS)" when i pasted the code from another line.

    so no matter it compiles or not, the code gets into the build error handling part.

    can't believe i wasted the entire afternoon on this. i kinda feel shame to post my problem and the stupid code here.

Similar Threads

  1. clGetPlatformIDs Exception..
    By phoebe0105 in forum OpenCL
    Replies: 4
    Last Post: 04-20-2010, 05:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •