calling CUDA program CUDA, call

When we want to call the CUDA program, we have to use the syntax " Func<<<Dg,Db,Ns>>> (parameter)" . But how to decide the dimension of the grid and the block? or we can decide them as we like?

I’m new on CUDA programming, so I don’t understand very well. Thanks for your help!!!

I suggest you to take a look at NVIDIA CUDA Programming Guide. The dimension of the grid is relative of your kind of problem. There’s no fixed size.