cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

ddemidov
Adept II
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.

Tags (2)
0 Kudos
Reply
5 Replies
himanshu_gautam
Grandmaster
Grandmaster

Re: Another bug in OpenCL compiler

.....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 Kudos
Reply
himanshu_gautam
Grandmaster
Grandmaster

Re: Another bug in OpenCL compiler

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

VincentSC
Adept II
Adept II

Re: Another bug in OpenCL compiler

Has this bug been fixed?

0 Kudos
Reply
ddemidov
Adept II
Adept II

Re: Another bug in OpenCL compiler

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

0 Kudos
Reply
nou
Exemplar
Exemplar

Re: Another bug in OpenCL compiler

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

0 Kudos
Reply