Results 1 to 3 of 3

Thread: More bugs on NV compiler

  1. #1

    More bugs on NV compiler

    Hello,

    We are reaching a hit. In two weeks we've found 3 bugs in the OpenCL NV compiler. I'm starting to thinking if it would be better switch back to GLSL again...

    First one is described here:
    viewtopic.php?f=28&t=4856

    Second one:
    I have an array of structs of this kind:
    Code :
    struct DispMapPixel
    {                  
    	float corrFactor;
    	float dispX;
    	float dispY;
    };
    If I change in the kernel code dispX and dispY by a float2 disp; and refactorize the code to use disp.x and disp.y, the kernel is compiled correctly, but the kernel execution crashes with CL_OUT_OF_RESOURCES (a timeout)

    Third one: because I do not want to write "struct" every time before any variable declaration, I changed the above DispMapPixel declaration by this one:
    Code :
    typedef struct 
    {                  
    	float corrFactor;
    	float dispX;
    	float dispY;
    } DispMapPixel;
     
    I even tried with no luck:
    typedef struct _dispMapPixelTag
    {                  
    	float corrFactor;
    	float dispX;
    	float dispY;
    } DispMapPixel;

    and then I removed the "struct" word for all declarations in my code. Surprise: the kernel compiles but the application crashes with an exception inside nvcuda.dll

    Well, its surprising to see how NV drivers could had pass the conformance tests. They really sucks.

  2. #2

    Re: More bugs on NV compiler

    Well, still playing with structs and it seems that NV din't implemented very well the structs. The driver crashes with standard C99 initializators like:

    struct DispMapPixel maxDispPixel = {-1.0f, 0.0f, 0.0f};

    or

    struct DispMapPixel maxDispPixel = {.corrFactor = -1.0f, .dispX = 0.0f, .dispY = 0.0f};

  3. #3

    Re: More bugs on NV compiler

    Ok, for all those bugs, NV was able to reproduce them. They told me that the bugs are routed for investigation.

    Hope they will fix that soon.

Similar Threads

  1. cl.hpp: Kernel::getWorkGroupInfo bugs
    By luca.digaspero in forum OpenCL
    Replies: 3
    Last Post: 10-20-2009, 10:09 AM
  2. ES 2.0 SL compiler optimisation
    By zargo in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 09-26-2006, 11:58 PM

Posting Permissions

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