In my kernel function i have given arguments as three vectors A,B and C respectively.
A and B are input vector ; C is the output vector
kernel function is as follows
{
int i=get_global_id(0);
int j;
for(j=0;j<6;j++)
{
B[j]=B[j]+1;
}
}

there was no change in the B vector

but when i wrote C[j] in place of B[j] inside the for loop, i got the changes in C vector
C[j]=C[j]+1;
Can anyone explain why??