Sorry for this newbie question.
Why the kernel function can not work?
threads/block = 32, blcoks/grid = 12,
gIndex = blockDim.x * blockIdx.x + threadIdx.x;
if( gIndex > 10 )
The error information is: the launch timed out and was terminated.
but if changed to “( gIndex >= 32 )”, the code could work normally,
Is that the threads in one block must run with the same algorithm?
Thanks in advance for the help.