cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ddemidov
Adept II

Another bug in OpenCL compiler

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.

0 Likes
5 Replies
himanshu_gautam
Grandmaster

.....Thats unbelievable...Will check this out...

Also, reminds me of programmers writing "This should not be executed" in their programs... Invariably, somehow, it gets executed someday.... Strange are the ways of software..

0 Likes

Reproduced..! 🙂 Will be filing a bug...Thanks for bringing this to our attention.

Has this bug been fixed?

0 Likes

I can still observe the bug on ATI drivers v13.9 (Gentoo Linux).

0 Likes

13.9 drivers are older than 13.8 beta. they were released by mistake.

0 Likes