AnsweredAssumed Answered

Another bug in OpenCL compiler

Question asked by ddemidov on May 14, 2013

Hello,

 

The following kernel leads to program crash when compiled ("UNREACHABLE executed!" is output to stderr just before program abort):

 

typedef struct {

    int first;

    float second;

} _pair_int_float_t;

__kernel void copy(__global _pair_int_float_t* _buf0)

{

    const uint i = get_global_id(0);

    _buf0[i]=(_pair_int_float_t){4, 2};

}

 

 

If, however, the assignment is replaced with

 

    _buf0[i]=(_pair_int_float_t){0, 0};

 

then the kernel is able to compile successfully. Please see https://gist.github.com/ddemidov/5574346 for the complete example. The OS is Gentoo Linux, ATI drivers v13.4 are installed.

Outcomes