title: clEnqueueNDRangeKernel blocks execution
body: <p>Another question for me now. I've been trying to analyze the results of my kernel parallel to its execution while it's broken up to multiple calls. However, while clEnqueueReadBuffer has a boolean to determine whether it blocks or not, clEnqueueNDRangeKernel has none and I had assumed it was async always (It is being "enqueued" afterall which makes me assume that it would act like a task queue). However, when I run this block of code the outer code doesn't get executed until the kernel has been finished completely (I am not explicitly calling clFinish or anything like that would cause this behavior).</p>
  
  <p>I'm running the kernel on an NVidia GPU. So why is this segment of code blocking and what could I do to remedy it within OpenCL? Otherwise, I'm considering running a separate thread solely to "enqueue" these kernel commands to the queue.</p>
  
  <pre><code>const size_t amountPerGo = multipleRoundUp(local_ws, (int)(50000));
  //Finds the smallest multiple of local worksize that greater than the 50000 segment
  
  std::cout &lt;&lt; "Launch" &lt;&lt; std::endl;
  
  for( int j = 0; j &lt; 10; j++ ) //Make the effects more extreme
  {
      for( size_t i = 0; i &lt; dimensions.x*dimensions.y; i+= amountPerGo )
      {
          clSetKernelArg(rayKernel, 6, sizeof(int), &amp;i);
          std::cout &lt;&lt; "sub" &lt;&lt; std::endl;
  
          error = clEnqueueNDRangeKernel(queue, kernel, 1, NULL, &amp;amountPerGo, &amp;local_ws, 0, NULL, NULL);
  
          // Reading back
          clEnqueueReadBuffer(queue, outResult, CL_FALSE, sizeof(vec4)*i, sizeof(vec4)*(amountPerGo), resultSet+i, 0, NULL, NULL);
      }
  }
  
  std::cout &lt;&lt; "End launch Start" &lt;&lt; std::endl;
  </code></pre>