I have several blocks were each block executes on separate part of an integer array. As an example: block one from array[0] to array[9] and block two from array[10] to array
As well as the suggestion to use Thrust, you could also use the CUBLAS cublasIsamax function.
cublasIsamax