Code :
GLOBAL void addRandom( DEVICE LINK_T link[], int link_n, int diapason, unsigned long rnd1, unsigned long rnd2)
{
 
 
   for (int i =  GET_GLOBAL_ID; i < link_n; i += GET_GLOBAL_SIZE) {
        link[i]=1;
   }
}
if
#define LINK_T char
all ok
if
#define LINK_T int
do CL_OUT_OF_RESOURCES
nvidia last drivers