In kernel code if i use

size_t id =get_global_id(0);
output[id] =input[id]*input[id];
------------------------------------------------------------
then what will be the value of id and
if i use

size_t id=get_global_id(1);
output[id] =input[id]*input[id];
then what will be the value of id because o dimension means what????????


as i under stand if it is 1 means one dimensional means
output[1]=input[1]*input[1];
means first element of input[] array

if input array is of 10 length then what will be the value of id for 2nd core,3rd core so on........

i am confused pls help
thanks