cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mjharvey
Adept I

beta4 problem: internal compiler error with scalar __local automatic variables

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].

 

 

 

 

0 Likes
0 Replies