title: CUDA: Maximum number of blocks in a grid != CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X?
body: <p>I want to start a kernel in such a fashion:</p>
  
  <pre><code>kernel_code&lt;&lt;&lt;NUMBER_BLOCKS, NUMBER_THREADS_PER_BLOCK&gt;&gt;&gt; (param1, param2, param3, param4);
  </code></pre>
  
  <p>Thus, using only the x-dimension of the grid. I want to call the kernel with the maximum number of blocks possible. I thought the max. number of blocks in a grid for one dimension would be 65535.</p>
  
  <p>However, I explored the constant <code>CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X</code> which sounds like exact the same number I want to find out. However, this constant returns 1899336 on my GeForce 210 (CUDA 1.2). What am I getting wrong?</p>