title: Dynamic global memory allocation in opencl kernel
body: <p>Is it possible to dynamically allocate global memory from the kernel?
  In CUDA it is possible but I would like to know if this is also possible in OpenCL on Intel GPUs.  </p>
  
  <p>for example:</p>
  
  <pre><code>__kernel void foo()
  
  {
  
  ,
  ,
  ,
  
  call malloc or clCreateBuffer here
  
  
  } 
  </code></pre>
  
  <p>is it possible? If yes how exactly?</p>