cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

kazocsaba
Journeyman III

Link failed accessing initialized array

Building the program below fails with "Internal error: Link failed". The issue seems to be caused by a mixture of using the array initializer and dynamic indexing.

A workaround is to use individual assignments to set the array elements.

__kernel void test(__global float* f) { float a[3]={-1,-1,-1}; int i=(f[0]<0); f[0]=a; }

0 Likes
3 Replies
omkaranathan
Adept I

kazocsaba,

Please post your system config(OS, GPU/CPU, SDK version etc)

 

0 Likes

kazocsaba,
This has already been fixed in an internal build and should be good in the next release.
0 Likes

Thank you.

0 Likes