title: Number of grids, blocks and threads in a GPU
body: <p>I am new to CUDA and GPU architecture.
  I ran this <a href="http://www.cs.fsu.edu/~xyuan/cda5125/examples/lect24/devicequery.cu" rel="nofollow noreferrer">code</a> .</p>
  
  <p>In the result i got only the dimensions of a grid. I know that each grid has 3 dimensions and there are those many number of blocks. and in each block there are again x<em>y</em>z number of threads. My question is how many number of grids are there in a GPU ( or is it GPU independent ) and if so how do i find it out and also how to handle the cases where more than these many number of threads are required ?</p>