CUDA: Getting max value and its index in an array

前端 未结 5 861
旧巷少年郎
旧巷少年郎 2021-01-03 01:57

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

5条回答
  •  一整个雨季
    2021-01-03 02:44

    As well as the suggestion to use Thrust, you could also use the CUBLAS cublasIsamax function.

提交回复
热议问题