title: calling a function from opencl kernel with the concept of pass by value
body: <p>what if i want to use pass by values concept. for example:</p>
  
  <pre><code>void sum(int &amp;u, int &amp;v)
  {    return u+v;  }
  
  __kernel void testing(__global int *a, __global int *b, __global int *c)
  {    int i = get_global_id(0);
       int u = max(a,b);
       int v = min(b,c);
       int x = sum(u,v);
  }
  </code></pre>
  
  <p>now my error is at '&amp;' symbol. i am unable to pass arguments using pass by reference concept. what to do?</p>