mjharvey

beta4 problem: internal compiler error with scalar __local automatic variables

Discussion created by mjharvey on Oct 15, 2009
beta4 problem

Compiling the  following kernel:

__kernel void test( int dummy ) {
    __local int i;
}

 

gives the error:

internal error: array_element_type: non-array type
 __local int i;

 

A work-around is to change "int i" to "int i[1]" and subsequent uses of i to i[0].

 

 

 

 

Outcomes