title: “invalid configuration argument” error when calling CUDA kernel
body: <p>I have GeForce 620M and my code is:</p>
  
  <pre><code>int threadsPerBlock = 256;                  
  int blocksPerGrid = Number_AA_GPU / threadsPerBlock; 
  for(it=0;it&lt;Number_repeatGPU;it++)
  {
      Kernel_Update&lt;&lt;&lt;blocksPerGrid,threadsPerBlock&gt;&gt;&gt;(A, B, C, D, rand(), rand());     
  }
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>invalid configuration argument.</p>
  </blockquote>
  
  <p>What could be the reason?</p>