title: Cuda: Changing grid dimension during execution
body: <p>I'm having trouble trying to define clearly the structure of my CUDA code. My code is divided into two phases: First, I need to run M * N operations, and the results of these is used in other N operations. To take advantage of CUDA, I wonder if you can have two levels of parallelism. First, a instrucion with dimGrid (N * M / dimBlock.x, N * M / dimBlock.y) and then another with dimGrid (N / dimBlock.x, N / dimBlock.y).</p>